aboutsummaryrefslogtreecommitdiff
path: root/display
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-10-07 14:28:40 +0200
committerlonkaars <l.leblansch@gmail.com>2021-10-07 14:28:40 +0200
commitd481e9ede60072a6c0f666c0e5dfb5962c759f4f (patch)
treebf5231af8c0c74ae84a7560f4ca6d0c827b35a7d /display
parentde887badcfea4831c648f74077dd3a50f2bffe99 (diff)
meer gedoe
Diffstat (limited to 'display')
-rw-r--r--display/display.ino19
1 files changed, 19 insertions, 0 deletions
diff --git a/display/display.ino b/display/display.ino
new file mode 100644
index 0000000..1fb2a4a
--- /dev/null
+++ b/display/display.ino
@@ -0,0 +1,19 @@
+void setup() {
+ pinMode(2, OUTPUT);
+ pinMode(3, OUTPUT);
+ pinMode(4, OUTPUT);
+ pinMode(5, OUTPUT);
+}
+
+int teller = 0;
+
+void loop() {
+ teller = (teller + 1) % 10;
+
+ digitalWrite(2, teller & 0b1000);
+ digitalWrite(3, teller & 0b0100);
+ digitalWrite(4, teller & 0b0010);
+ digitalWrite(5, teller & 0b0001);
+
+ delay(1000);
+}