sources and files for the bombatuino project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
343 B

  1. #include <INPUT_4051.h>
  2. INPUT_4051 input_4051(A1,10,9,8,printValue);
  3. void setup() {
  4. Serial.begin(9600);
  5. input_4051.setPinCount(2);
  6. }
  7. void loop() {
  8. input_4051.loop();
  9. }
  10. void printValue(int pin, int value) {
  11. Serial.print("pin");
  12. Serial.print(pin);
  13. Serial.print(" : ");
  14. Serial.print(value/8);
  15. Serial.println();
  16. }