adc reference bug fixed

This commit is contained in:
Tristan Krause 2019-05-16 10:44:38 +02:00
parent 2c36fe05f8
commit 708b35c295
7 changed files with 9 additions and 18 deletions

View file

@ -34,7 +34,10 @@ int main()
for(uint16_t x = 0; x < sample_count * delta; x += delta)
{
pf.addDot(Dot(x, ba[x], curve));
drv.analogWrite0(x);
uint16_t y = drv.analogRead(0);
std::cout << x << " - " << y << std::endl;
pf.addDot(Dot(x, y, curve));
}
// speichern und plotty starten