I'm starting out with Littlebits and Arduino and completed http://littlebits.cc/projects/hold-an-on-off-state. But I'd like the counter, rather than writing to serial with
Serial.print("number of button pushes: "); to output that number to the number module. Any idea where I can get same code or some ideas how to make this happen?
I found https://lb-community.s3.amazonaws.com/uploads/supporting_file/asset/900/peoplecounter.ino example and used
digitalWrite(9, LOW);in the setup portion then
analogWrite(9, buttonPushCounter);in various places in the original code from the hold on/off example. While the number module increments, it' only does it on the button push and is only works when the "bargraph" is turned off. In other words, works 50% of the time. What would be the proper way to display the value of
buttonPushCounteron the number module?
The number module is on a9