summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-01-04 09:01:08 +0500
committerPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-01-04 09:01:08 +0500
commit401d87bd535c17cfc36035a6e6ee9a7bb0ad5739 (patch)
treeae469c3547fed87777de5e1afe766469bb0ec3f8 /src/main.c
parent9477bf2b6cce08f648b1d9b3c37a2bf697854e70 (diff)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/main.c b/src/main.c
index b68eded..233757b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -18,20 +18,15 @@ int main(void) {
ILI_SetupGPIO();
ILI_Setup();
-
- // gpio_set(GPIOC, GPIO13);
- // for (uint32_t i = 0; i < 1000000; i++) {
- // __asm__("nop");
- // }
-
+
+ delayCycles(1000000);
uint16_t colour = 0x0000;
+ ILI_setAddrWindow(0, 0, 9, 9);
+ for (int i = 0; i < 100; i++) {
+ ILI_sendData((colour >> 8) & 0xFF);
+ ILI_sendData(colour & 0xFF);
+ }
while (1) {
- ILI_setAddrWindow(0, 0, 9, 9);
- for (int i = 0; i < 100; i++) {
- ILI_sendData((colour >> 8) & 0xFF);
- ILI_sendData(colour & 0xFF);
- }
- colour++;
}
}