set correct screen size and get dev workflow figured out

This commit is contained in:
Travis Shears 2026-02-02 12:05:38 +01:00
parent c6a9640e0c
commit eb4dc47f35
Signed by: travisshears
GPG key ID: CB9BF1910F3F7469
2 changed files with 23 additions and 12 deletions

View file

@ -7,3 +7,19 @@ This is a DIY Electronics project of mine to make a kitchen timer that perfectly
This first step in this project is a mockup to prove the concept works and try to iron out a few interface issues before buying parts. This first step in this project is a mockup to prove the concept works and try to iron out a few interface issues before buying parts.
![screen capture](docs/kitchen_timer.png) ![screen capture](docs/kitchen_timer.png)
### Lua Dev
To run the mockup app:
```shell
$ cd kitchen_timer/l5-mockup
$ love .
```
Or with hot reloading:
```shell
$ cd kitchen_timer/l5-mockup
$ echo main.lua | entr -r /Applications/love.app/Contents/MacOS/love .
```

View file

@ -1,19 +1,14 @@
require("L5") require("L5")
function setup() function setup()
size(400, 400) size(480, 320) -- the size of the LCD screen
windowTitle("Kitchen Timer Mockup")
-- Set the program title -- Sets print command output to display in window
windowTitle("Basic sketch") printToScreen()
describe('Draws a yellow background!!!!')
-- Sets print command output to display in window
printToScreen()
describe('Draws a yellow background')
end end
function draw() function draw()
-- Fills the background with the color yellow -- Fills the background with the color yellow
background(255, 215, 0) background(255, 215, 0)
end end