set correct screen size and get dev workflow figured out
This commit is contained in:
parent
c6a9640e0c
commit
eb4dc47f35
2 changed files with 23 additions and 12 deletions
16
README.md
16
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.
|
||||
|
||||

|
||||
|
||||
### 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 .
|
||||
```
|
||||
|
|
|
|||
|
|
@ -1,19 +1,14 @@
|
|||
require("L5")
|
||||
|
||||
function setup()
|
||||
size(400, 400)
|
||||
|
||||
-- Set the program title
|
||||
windowTitle("Basic sketch")
|
||||
|
||||
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')
|
||||
describe('Draws a yellow background!!!!')
|
||||
end
|
||||
|
||||
function draw()
|
||||
-- Fills the background with the color yellow
|
||||
background(255, 215, 0)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue