I'm using Arduino 1.0.6 on Mac OS 10.9.5 (having installed with Teensyduino 1.20).
Using the Basic Encoder Test example code, I'm able to see in the Serial Monitor that
Code: Select all
Serial.println(newPosition);
However,
a) Every time I try to open the Serial Monitor, I get an error:
"Serial port '/dev/cu.usbmodem415891' not found. Did you select the right one from the Tools > Serial Port menu?"
Note that none of the other serial port options work at all, and I am indeed able to get the Serial Monitor window to come up, but only after reselecting "Serial Port" in the Tools Menu, and re-selecting Serial Monitor from the menu.
b) The program includes
Code: Select all
Serial.println("Basic Encoder Test:");
c) So moving forward, to better understand how to code for the rotary encoder, I try to load the program that the Adafruit site recommends for getting started with the rotary encoder, which itself is written not for the Teensy but for the Trinket. Not sure if that's an issue but even though I've got the necessary libraries loaded (triple-checked this, they are in there correctly I believe), Arduino software says:
TRINKET_forRotaryEncoder.ino: In function 'void loop()':
TRINKET_forRotaryEncoder:46: error: 'TRINKET_PINx' was not declared in this scope
TRINKET_forRotaryEncoder:46: error: 'bit_is_clear' was not declared in this scope
TRINKET_forRotaryEncoder:49: error: 'TRINKET_PINx' was not declared in this scope
TRINKET_forRotaryEncoder:49: error: 'bit_is_clear' was not declared in this scope
TRINKET_forRotaryEncoder:85: error: 'bit_is_set' was not declared in this scope
TRINKET_forRotaryEncoder:112: error: 'TRINKET_PINx' was not declared in this scope
TRINKET_forRotaryEncoder:112: error: 'bit_is_set' was not declared in this scope
Ultimately, I want to have the Rotary Encoder controlling LEDs (turning on one at a time, and then every 30 leaving one additional one lit up) on the 12mm Diffused Thin Digital RGB LED Pixels - which I got in the mail and played around with and which are SO COOL!
Any recommendation for troubleshooting any / all of these issues would be so appreciated.
Thanks tons Adafruiters!