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.
|
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")
|
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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue