test for dac
This commit is contained in:
parent
a7404c57aa
commit
e77913760a
1 changed files with 14 additions and 0 deletions
14
projekte/oszi-grafik/sketch_mar26a/sketch_mar26a.pde
Normal file
14
projekte/oszi-grafik/sketch_mar26a/sketch_mar26a.pde
Normal file
|
@ -0,0 +1,14 @@
|
|||
void setup() {
|
||||
for(int p=8; p<=11; p++) {
|
||||
pinMode(p, OUTPUT);
|
||||
}
|
||||
}
|
||||
|
||||
void loop() {
|
||||
for (int c=0; c<16; c++) {
|
||||
for (int b=0; b<4; b++) {
|
||||
digitalWrite(8+b, c & _BV(b));
|
||||
}
|
||||
delay(100);
|
||||
}
|
||||
}
|
Reference in a new issue