Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define ANALOG_IN 0
- void setup() {
- Serial.begin(9600);
- //Serial.begin(115200);
- }
- void loop() {
- int val = analogRead(ANALOG_IN);
- Serial.write( 0xff );
- Serial.write( (val >> 8) & 0xff );
- Serial.write( val & 0xff );
- }
Add Comment
Please, Sign In to add comment