diff --git a/README.md b/README.md index 8711b27..3f73697 100644 --- a/README.md +++ b/README.md @@ -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. ![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 . +``` diff --git a/l5-mockup/main.lua b/l5-mockup/main.lua index 2bfbeff..e2f7ff7 100644 --- a/l5-mockup/main.lua +++ b/l5-mockup/main.lua @@ -1,19 +1,14 @@ require("L5") function setup() - size(400, 400) - - -- Set the program title - windowTitle("Basic sketch") - - -- Sets print command output to display in window - printToScreen() - - describe('Draws a yellow background') + size(480, 320) -- the size of the LCD screen + windowTitle("Kitchen Timer Mockup") + -- Sets print command output to display in window + printToScreen() + describe('Draws a yellow background!!!!') end function draw() - -- Fills the background with the color yellow - background(255, 215, 0) + -- Fills the background with the color yellow + background(255, 215, 0) end -