//Code to test the hello.bus.45.node_remix board with serial communication, a potentiometer and a led. #include SoftwareSerial mySerial(3, 4); int pot_data = 0; int pot_pin = A1; //Pin7 of the ATtiny45 int led_pin = 0; //Pin5 (PWM) of the ATtiny45 byte addressBoard = 1; void setup() { mySerial.begin(9600); pinMode(led_pin, OUTPUT); pinMode(pot_pin, INPUT); } void loop() { pot_data = analogRead(pot_pin); analogWrite(led_pin, map(pot_data, 0, 1023, 255, 0)); //mySerial.println(pot_data); mySerial.write(addressBoard); mySerial.write(map(pot_data, 0, 1023, 255, 0)); }