added lcd demo dummy
This commit is contained in:
parent
2285ddfc63
commit
e7f0c8e2c2
19
demos/lcd/main.c
Normal file
19
demos/lcd/main.c
Normal file
@ -0,0 +1,19 @@
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "gdisp.h"
|
||||
|
||||
int main(void) {
|
||||
halInit();
|
||||
chSysInit();
|
||||
|
||||
gdispInit();
|
||||
gdispClear(Black);
|
||||
|
||||
// gdispDrawXXX(...);
|
||||
|
||||
while (TRUE) {
|
||||
|
||||
chThdSleepMilliseconds(100);
|
||||
}
|
||||
}
|
||||
|
@ -1,26 +0,0 @@
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "gdisp.h"
|
||||
#include "touchpad.h"
|
||||
|
||||
TOUCHPADDriver TOUCHPADD1 = {
|
||||
&SPID1,
|
||||
};
|
||||
|
||||
int main(void) {
|
||||
halInit();
|
||||
chSysInit();
|
||||
|
||||
gdispInit();
|
||||
gdispClear(Lime);
|
||||
|
||||
tpInit(&TOUCHPADD1);
|
||||
tpCalibrate();
|
||||
|
||||
while (TRUE) {
|
||||
gdispFillCircle(tpReadX(), tpReadY(), 3, Black);
|
||||
|
||||
chThdSleepMilliseconds(100);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user