88 lines
2.4 KiB
Diff
88 lines
2.4 KiB
Diff
diff --git a/charlcd/demos/lcd_wifi_content.py b/charlcd/demos/lcd_wifi_content.py
|
|
deleted file mode 100644
|
|
index e27d2ed..0000000
|
|
--- a/charlcd/demos/lcd_wifi_content.py
|
|
+++ /dev/null
|
|
@@ -1,29 +0,0 @@
|
|
-#!/usr/bin/python
|
|
-# -*- coding: utf-8 -*-
|
|
-"""test script for wifi-content lcd input"""
|
|
-import sys
|
|
-from iot_message import message
|
|
-sys.path.append("../../")
|
|
-from charlcd.drivers.wifi_content import WiFi # NOQA
|
|
-from charlcd import buffered as charlcd # NOQA
|
|
-
|
|
-
|
|
-def test1():
|
|
- """test flush"""
|
|
- msg = message.Message('node-40x4')
|
|
- drv = WiFi(msg, ['node-40x4'], ('192.168.1.255', 5053))
|
|
- lcd = charlcd.CharLCD(40, 4, drv)
|
|
- lcd.init()
|
|
- lcd.write('- Blarg !')
|
|
- lcd.write('- Grarg !', 0, 1)
|
|
- lcd.write('- ALIVE !!!!', 0, 2)
|
|
- lcd.flush()
|
|
-
|
|
- lcd.write('/* ', 19, 0)
|
|
- lcd.write('|*|', 19, 1)
|
|
- lcd.write(' */', 19, 2)
|
|
-
|
|
- lcd.flush()
|
|
-
|
|
-
|
|
-test1()
|
|
diff --git a/charlcd/demos/lcd_wifi_direct.py b/charlcd/demos/lcd_wifi_direct.py
|
|
deleted file mode 100644
|
|
index 9382d54..0000000
|
|
--- a/charlcd/demos/lcd_wifi_direct.py
|
|
+++ /dev/null
|
|
@@ -1,46 +0,0 @@
|
|
-#!/usr/bin/python
|
|
-# -*- coding: utf-8 -*-
|
|
-"""test script for wifi-direct lcd input"""
|
|
-import sys
|
|
-from iot_message import message
|
|
-sys.path.append("../../")
|
|
-from charlcd.drivers.wifi_direct import WiFi # NOQA
|
|
-from charlcd import direct as charlcd # NOQA
|
|
-
|
|
-
|
|
-def test1():
|
|
- """test 40x4 set & write"""
|
|
- msg = message.Message('node-40x4')
|
|
- drv = WiFi(msg, ['node-40x4'], ('192.168.1.255', 5053))
|
|
- lcd = charlcd.CharLCD(40, 4, drv)
|
|
- lcd.init()
|
|
- lcd.set_xy(10, 2)
|
|
- lcd.write('-Second blarg !')
|
|
- lcd.set_xy(10, 1)
|
|
- lcd.write("-second line")
|
|
-
|
|
-
|
|
-def test2():
|
|
- """test stream"""
|
|
- msg = message.Message('node-40x4')
|
|
- drv = WiFi(msg, ['node-40x4'], ('192.168.1.255', 5053))
|
|
- lcd = charlcd.CharLCD(40, 4, drv)
|
|
- lcd.init()
|
|
- lcd.stream('1234567890qwertyuiopasdfghjkl')
|
|
-
|
|
-
|
|
-def test3():
|
|
- """demo 3 - lcd 40x4 and write with xy"""
|
|
- msg = message.Message('node-40x4')
|
|
- drv = WiFi(msg, ['node-40x4'], ('192.168.1.255', 5053))
|
|
- lcd = charlcd.CharLCD(40, 4, drv)
|
|
- lcd.init()
|
|
- lcd.write('-First blarg1 !')
|
|
- lcd.write('-Second blarg2 !', 0, 1)
|
|
- lcd.write('-Third blarg3 !', 0, 2)
|
|
- lcd.write('-Fourth blarg4 !', 0, 3)
|
|
- lcd.write('12345678901234567890', 15, 1)
|
|
- lcd.stream('1234567890qwertyuiopasdfghjkl')
|
|
-
|
|
-
|
|
-test3()
|