Skip to content

Commit 15bddec

Browse files
committed
Created page example
1 parent 628f3b7 commit 15bddec

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

examples/cmd/cmd-example.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import nextion
2-
1+
from nextion import nextion
32
display = nextion(12, 13, 9600)
4-
print(display.cmd('t0.txt="Its running!"'))
3+
display.cmd('t0.txt="Its running!"')

examples/page/page.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from nextion import nextion
2+
import time
3+
time.sleep(1)
4+
display = nextion(12, 13, 9600)
5+
display.page(1)

examples/page/page.tft

261 KB
Binary file not shown.

0 commit comments

Comments
 (0)