1
0
Fork 0
This repository has been archived on 2019-12-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
arduinisten/projekte/oszi-grafik/dac_test/dac_test.pde
2011-03-03 02:03:06 +01:00

26 lines
429 B
Text

const int pinCLK = 8;
void setup()
{
// set TDA8702 to transparent mode (CLK = LOW)
pinMode(pinCLK, OUTPUT);
digitalWrite(pinCLK, LOW);
pinMode(7, OUTPUT);
pinMode(6, OUTPUT);
// FIX HEISENBUG, FUCKYEAH
Serial.begin(9600);
}
int count = 0;
void loop()
{
digitalWrite(7, (count & 0b10) >> 1);
digitalWrite(6, (count & 0b01) >> 0);
delay(100);
count++;
}