Difference between revisions of "ObjectBlocks: Slider & Blink"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 24: | Line 24: | ||
digitalWrite(13, LOW); | digitalWrite(13, LOW); | ||
} | } | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==Pranala Menarik== | ||
+ | |||
+ | * [[ObjectBlocks]] |
Latest revision as of 19:42, 19 March 2023
#include "Channel.h" #include <Wire.h> #include "TM1650.h" TM1650 display; void setup() { // Pin Mode Definition pinMode(13, OUTPUT); Channel.connect("mFPdJAqtBzpu7t"); Wire.begin(); display.init(); } void loop() { Channel.sendNumber("SLIDER", analogRead(A0)); display.displayNumber((analogRead(A0))); Channel.sendNumber("SLIDER", analogRead(A0)); delay(1000); digitalWrite(13, HIGH); delay(1000); digitalWrite(13, LOW); }