-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.py
More file actions
35 lines (32 loc) · 800 Bytes
/
Copy pathmain.py
File metadata and controls
35 lines (32 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from machine import Pin,SPI
import Screen
import time
power=Pin(13,Pin.OUT)
power.value(1)
spi=SPI(1,sck=Pin(18,Pin.OUT),mosi=Pin(5,Pin.OUT),baudrate=24000000)
s = Screen.create(128, 64, spi, Pin(16,Pin.OUT), Pin(17,Pin.OUT))
s.print('Hello, world. 1')
time.sleep_ms(500)
s.print('Hello, Aaron. 2')
time.sleep_ms(500)
s.print('Hello, Abel. 3')
time.sleep_ms(500)
s.print('Hello, Arthur. 4')
time.sleep_ms(500)
s.print('Hello, Angus. 5')
time.sleep_ms(500)
s.print('Hello, Andy. 6')
time.sleep_ms(500)
s.print('Hello, Alfred. 7')
time.sleep_ms(500)
s.print('Hello, Alexander. 8')
time.sleep_ms(500)
s.print('Hello, Adrian. 9')
time.sleep_ms(500)
s.print('Hello, Andrew. 10')
time.sleep_ms(500)
s.print('Hello, Alan. 11')
time.sleep_ms(500)
s.print('Hello, Adam. 12')
time.sleep_ms(500)
spi.deinit()