blob: 9b356dbe06ba96b4a05ab197762670d79d4a4f10 (
plain)
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
36
|
codegen:
instance: sharp96
includes: ['driver/spi_b.h', 'driver/sharp96.h']
setup: ['spi.setup();', 'sharp96.setup();']
states:
- UNINITIALIZED
- POWERON
- POWEROFF
transition:
setup:
src: [UNINITIALIZED]
dst: POWEROFF
powerOn:
src: [POWEROFF]
dst: POWERON
powerOff:
src: [POWERON]
dst: POWEROFF
clear:
src: [POWERON]
dst: POWERON
writeLine:
src: [POWERON]
dst: POWERON
arguments:
- name: line_no
values: [0, 63, 95]
- name: data
values:
- '(unsigned char *)"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"'
- '(unsigned char *)"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"'
toggleVCOM:
src: [POWERON]
dst: POWERON
|