This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
Distancer/Distancer.cpp

28 lines
297 B
C++
Raw Normal View History

2017-02-24 20:48:01 +00:00
#include "Hardware.h"
#include "MyLcd.h"
2017-02-19 14:04:43 +00:00
2017-02-19 11:56:01 +00:00
#include <avr/io.h>
2017-02-24 20:48:01 +00:00
extern "C" void __cxa_pure_virtual(void)
2017-02-19 14:04:43 +00:00
{
2017-02-24 20:48:01 +00:00
2017-02-19 14:04:43 +00:00
}
2017-02-19 11:56:01 +00:00
int main()
{
2017-02-24 20:48:01 +00:00
MyLcd lcd;
delay_ms(40);
lcd.initDisplay();
uint16_t counter = 0;
2017-02-19 14:04:43 +00:00
2017-02-19 11:56:01 +00:00
while (true)
{
2017-02-24 20:48:01 +00:00
lcd.clear();
lcd.output(counter++);
lcd.output('s');
2017-02-24 20:48:01 +00:00
delay_ms(1000);
2017-02-19 11:56:01 +00:00
}
}