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