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

27 lines
429 B
Text
Raw Permalink Normal View History

2011-03-03 02:03:06 +01:00
const int pinCLK = 8;
void setup()
{
// set TDA8702 to transparent mode (CLK = LOW)
pinMode(pinCLK, OUTPUT);
digitalWrite(pinCLK, LOW);
2010-03-30 18:55:18 +02:00
pinMode(7, OUTPUT);
pinMode(6, OUTPUT);
2011-03-03 02:03:06 +01:00
// FIX HEISENBUG, FUCKYEAH
Serial.begin(9600);
2010-03-30 18:55:18 +02:00
}
int count = 0;
void loop()
{
2011-03-03 02:03:06 +01:00
digitalWrite(7, (count & 0b10) >> 1);
digitalWrite(6, (count & 0b01) >> 0);
2010-03-30 18:55:18 +02:00
2011-03-03 02:03:06 +01:00
delay(100);
2010-03-30 18:55:18 +02:00
count++;
}