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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: package pixtendlib</title>
<meta charset="utf-8">
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>pixtendlib</strong></big></big> (version 0.1.1)</font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/pi/ppl/pixtendlib/__init__.py">/home/pi/ppl/pixtendlib/__init__.py</a></font></td></tr></table>
<p><tt># coding=utf-8</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="pixtendlib.html#Pixtend">Pixtend</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="_ctypes.html#Structure">_ctypes.Structure</a>(_ctypes._CData)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="pixtendlib.html#AnalogValueBytes">AnalogValueBytes</a>
</font></dt><dt><font face="helvetica, arial"><a href="pixtendlib.html#FlagsBits">FlagsBits</a>
</font></dt><dt><font face="helvetica, arial"><a href="pixtendlib.html#FlagsBits16">FlagsBits16</a>
</font></dt><dt><font face="helvetica, arial"><a href="pixtendlib.html#UcVersionBytes">UcVersionBytes</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="_ctypes.html#Union">_ctypes.Union</a>(_ctypes._CData)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="pixtendlib.html#AnalogValue">AnalogValue</a>
</font></dt><dt><font face="helvetica, arial"><a href="pixtendlib.html#Flags">Flags</a>
</font></dt><dt><font face="helvetica, arial"><a href="pixtendlib.html#Flags16">Flags16</a>
</font></dt></dl>
</dd>
</dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="AnalogValue">class <strong>AnalogValue</strong></a>(<a href="_ctypes.html#Union">_ctypes.Union</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt><a href="_ctypes.html#Union">Union</a> from ctypes to combine the <a href="#AnalogValueBytes">AnalogValueBytes</a> structure with a C_UINT16 type to make a double byte<br>
memory area. This memory can then be accessed via the C_UINT16 (asUint16) field or via 2 individual named<br>
bytes from the structure <a href="#AnalogValueBytes">AnalogValueBytes</a>.<br>
<br>
:type bytes : <a href="#AnalogValueBytes">AnalogValueBytes</a><br>
:type asUint16 : c_uint16<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="pixtendlib.html#AnalogValue">AnalogValue</a></dd>
<dd><a href="_ctypes.html#Union">_ctypes.Union</a></dd>
<dd>_ctypes._CData</dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="AnalogValue-__init__"><strong>__init__</strong></a>(self, *args, **kwargs)</dt></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<dl><dt><strong>asUint16</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bytes</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<hr>
Data and other attributes inherited from <a href="_ctypes.html#Union">_ctypes.Union</a>:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of _ctypes.UnionType object><dd><tt>T.<a href="#AnalogValue-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
<hr>
Methods inherited from _ctypes._CData:<br>
<dl><dt><a name="AnalogValue-__ctypes_from_outparam__"><strong>__ctypes_from_outparam__</strong></a>(...)</dt></dl>
<dl><dt><a name="AnalogValue-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#AnalogValue-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
<dl><dt><a name="AnalogValue-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
<dl><dt><a name="AnalogValue-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="AnalogValueBytes">class <strong>AnalogValueBytes</strong></a>(<a href="_ctypes.html#Structure">_ctypes.Structure</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>This is a structure for two (2) single bytes to split up a 16 bit / 2 bytes data type. This class can be used<br>
in a <a href="_ctypes.html#Union">Union</a>.<br>
<br>
:type byte0 : c_uint8<br>
:type byte1 : c_uint8<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="pixtendlib.html#AnalogValueBytes">AnalogValueBytes</a></dd>
<dd><a href="_ctypes.html#Structure">_ctypes.Structure</a></dd>
<dd>_ctypes._CData</dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="AnalogValueBytes-__init__"><strong>__init__</strong></a>(self, *args, **kwargs)</dt></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<dl><dt><strong>byte0</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>byte1</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<hr>
Data and other attributes inherited from <a href="_ctypes.html#Structure">_ctypes.Structure</a>:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of _ctypes.PyCStructType object><dd><tt>T.<a href="#AnalogValueBytes-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
<hr>
Methods inherited from _ctypes._CData:<br>
<dl><dt><a name="AnalogValueBytes-__ctypes_from_outparam__"><strong>__ctypes_from_outparam__</strong></a>(...)</dt></dl>
<dl><dt><a name="AnalogValueBytes-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#AnalogValueBytes-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
<dl><dt><a name="AnalogValueBytes-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
<dl><dt><a name="AnalogValueBytes-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="Flags">class <strong>Flags</strong></a>(<a href="_ctypes.html#Union">_ctypes.Union</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>A class using the ctypes <a href="_ctypes.html#Union">Union</a> to combine the 8 bits from the <a href="#FlagsBits">FlagsBits</a> class (field) and one byte (type c_uint8)<br>
into one memory space overlaying each other. This way each single bit within a byte can be accessed directly by<br>
its individual name. Using the asBytes field element allows to set all 8 bits at once. <br>
<br>
:type b : <a href="#FlagsBits">FlagsBits</a><br>
:type asByte : c_uint8<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="pixtendlib.html#Flags">Flags</a></dd>
<dd><a href="_ctypes.html#Union">_ctypes.Union</a></dd>
<dd>_ctypes._CData</dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="Flags-__init__"><strong>__init__</strong></a>(self, *args, **kwargs)</dt></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<dl><dt><strong>asByte</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>b</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<hr>
Data and other attributes inherited from <a href="_ctypes.html#Union">_ctypes.Union</a>:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of _ctypes.UnionType object><dd><tt>T.<a href="#Flags-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
<hr>
Methods inherited from _ctypes._CData:<br>
<dl><dt><a name="Flags-__ctypes_from_outparam__"><strong>__ctypes_from_outparam__</strong></a>(...)</dt></dl>
<dl><dt><a name="Flags-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#Flags-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
<dl><dt><a name="Flags-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
<dl><dt><a name="Flags-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="Flags16">class <strong>Flags16</strong></a>(<a href="_ctypes.html#Union">_ctypes.Union</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt><a href="_ctypes.html#Union">Union</a> from ctypes to combine a 16 bits structure with a C_UINT16 type to make a two byte memory space<br>
for the SPI data which will be sent to the DAC via SPI Master 0 and Chip Select 1.<br>
<br>
:type bits : <a href="#FlagsBits16">FlagsBits16</a><br>
:type asUint16 : c_uint16<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="pixtendlib.html#Flags16">Flags16</a></dd>
<dd><a href="_ctypes.html#Union">_ctypes.Union</a></dd>
<dd>_ctypes._CData</dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="Flags16-__init__"><strong>__init__</strong></a>(self, *args, **kwargs)</dt></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<dl><dt><strong>asUint16</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bits</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<hr>
Data and other attributes inherited from <a href="_ctypes.html#Union">_ctypes.Union</a>:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of _ctypes.UnionType object><dd><tt>T.<a href="#Flags16-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
<hr>
Methods inherited from _ctypes._CData:<br>
<dl><dt><a name="Flags16-__ctypes_from_outparam__"><strong>__ctypes_from_outparam__</strong></a>(...)</dt></dl>
<dl><dt><a name="Flags16-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#Flags16-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
<dl><dt><a name="Flags16-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
<dl><dt><a name="Flags16-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="FlagsBits">class <strong>FlagsBits</strong></a>(<a href="_ctypes.html#Structure">_ctypes.Structure</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>This class has a field with named bits within one single byte, they will be used later to control/change<br>
individual bits in one single byte.<br>
<br>
:type bit0 : c_uint8<br>
:type bit1 : c_uint8<br>
:type bit2 : c_uint8<br>
:type bit3 : c_uint8<br>
:type bit4 : c_uint8<br>
:type bit5 : c_uint8<br>
:type bit6 : c_uint8<br>
:type bit7 : c_uint8<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="pixtendlib.html#FlagsBits">FlagsBits</a></dd>
<dd><a href="_ctypes.html#Structure">_ctypes.Structure</a></dd>
<dd>_ctypes._CData</dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="FlagsBits-__init__"><strong>__init__</strong></a>(self, *args, **kwargs)</dt></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<dl><dt><strong>bit0</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit1</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit2</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit3</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit4</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit5</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit6</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit7</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<hr>
Data and other attributes inherited from <a href="_ctypes.html#Structure">_ctypes.Structure</a>:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of _ctypes.PyCStructType object><dd><tt>T.<a href="#FlagsBits-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
<hr>
Methods inherited from _ctypes._CData:<br>
<dl><dt><a name="FlagsBits-__ctypes_from_outparam__"><strong>__ctypes_from_outparam__</strong></a>(...)</dt></dl>
<dl><dt><a name="FlagsBits-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#FlagsBits-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
<dl><dt><a name="FlagsBits-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
<dl><dt><a name="FlagsBits-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="FlagsBits16">class <strong>FlagsBits16</strong></a>(<a href="_ctypes.html#Structure">_ctypes.Structure</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>This class has a field with named bits within one 2 bytes structure (c_uint16 type), they will be used later<br>
to control/change individual bits in two bytes.<br>
<br>
:type bit0 : ctypes.c_ushort<br>
:type bit1 : ctypes.c_ushort<br>
:type bit2 : ctypes.c_ushort<br>
:type bit3 : ctypes.c_ushort<br>
:type bit4 : ctypes.c_ushort<br>
:type bit5 : ctypes.c_ushort<br>
:type bit6 : ctypes.c_ushort<br>
:type bit7 : ctypes.c_ushort<br>
:type bit8 : ctypes.c_ushort<br>
:type bit9 : ctypes.c_ushort<br>
:type bit10 : ctypes.c_ushort<br>
:type bit11 : ctypes.c_ushort<br>
:type bit12 : ctypes.c_ushort<br>
:type bit13 : ctypes.c_ushort<br>
:type bit14 : ctypes.c_ushort<br>
:type bit15 : ctypes.c_ushort<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="pixtendlib.html#FlagsBits16">FlagsBits16</a></dd>
<dd><a href="_ctypes.html#Structure">_ctypes.Structure</a></dd>
<dd>_ctypes._CData</dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="FlagsBits16-__init__"><strong>__init__</strong></a>(self, *args, **kwargs)</dt></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<dl><dt><strong>bit0</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit1</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit10</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit11</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit12</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit13</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit14</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit15</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit2</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit3</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit4</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit5</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit6</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit7</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit8</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>bit9</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<hr>
Data and other attributes inherited from <a href="_ctypes.html#Structure">_ctypes.Structure</a>:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of _ctypes.PyCStructType object><dd><tt>T.<a href="#FlagsBits16-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
<hr>
Methods inherited from _ctypes._CData:<br>
<dl><dt><a name="FlagsBits16-__ctypes_from_outparam__"><strong>__ctypes_from_outparam__</strong></a>(...)</dt></dl>
<dl><dt><a name="FlagsBits16-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#FlagsBits16-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
<dl><dt><a name="FlagsBits16-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
<dl><dt><a name="FlagsBits16-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="Pixtend">class <strong>Pixtend</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>The PiXtend class derived from Python <a href="__builtin__.html#object">object</a> can be used to control and manipulate states of inputs and outputs <br>
(analog and digital) in the microcontroller on the PiXtend board via the Raspberry Pi's SPI bus.<br>
<br>
Import the pixtend file: from pixtendlib import <a href="#Pixtend">Pixtend</a><br>
Creating an instance: p = <a href="#Pixtend">Pixtend</a>()<br>
Activate the SPI bus: p.<a href="#Pixtend-open">open</a>()<br>
Read relay 0 state: mystate = p.relay0<br>
Set relay 1 to on: p.relay1 = p.ON<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Pixtend-__del__"><strong>__del__</strong></a>(self)</dt><dd><tt>Destructor of the <a href="#Pixtend">Pixtend</a> class.<br>
Delete all objects, clean up GPIOs and close the SPI bus when the <a href="#Pixtend">Pixtend</a> instance is destroyed.</tt></dd></dl>
<dl><dt><a name="Pixtend-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Constructor of the <a href="#Pixtend">Pixtend</a> class.<br>
Create all objects and variables needed, set defaults for the RPi SPI bus, the GPIOs and activate<br>
the BCM GPIO layout on the Raspberry Pi. The GPIO 24 needs to be an output and set to 'on' to enable<br>
the communication with the microcontroller on the PiXtend board via SPI Master 0 and Chip Select 0.</tt></dd></dl>
<dl><dt><a name="Pixtend-auto_mode"><strong>auto_mode</strong></a>(self)</dt><dd><tt>Method for the auto(matic) mode data transfer. The settings and values of all applicable<br>
properties like outputs, GPIO and PWM configuration for the PiXtend board are sent to the microcontroller<br>
in one block and states and values of all digital and analog inputs and outputs are received as response.<br>
This is the most efficient way to work with the microcontroller on the PiXtend board.<br>
<br>
In the beginning the auto_mode method should be called until the return value is 0 and the microcontroller's<br>
uc_state is 1, meaning the communication is working and the microcontroller has entered the 'Run' state.<br>
After that the auto_mode method does not need to be called on a regular basis, but when new values are needed<br>
or outputs have to be turned on or off.<br>
<br>
Example:<br>
if p.<a href="#Pixtend-auto_mode">auto_mode</a>() == 0 and p.uc_status == 1:<br>
p.relay0 = p.ON<br>
<br>
:return: 0 means communication is ok and running, -1 means crc error and/or a problem with the received data<br>
:rtype: int</tt></dd></dl>
<dl><dt><a name="Pixtend-close"><strong>close</strong></a>(self)</dt><dd><tt>Close SPI device, clean up Raspberry Pi GPIO device and set all variables to None.</tt></dd></dl>
<dl><dt><a name="Pixtend-open"><strong>open</strong></a>(self, spi_channel<font color="#909090">=0</font>, spi_cs<font color="#909090">=0</font>, spi_speed<font color="#909090">=100000</font>)</dt><dd><tt>Open SPI Master 0 with Chip Select 0 on the Raspberry Pi to start the communication with the microcontroller<br>
on the PiXtend board.<br>
<br>
:param int spi_channel: Number of the SPI master, default is 0, optional parameter<br>
:param int spi_cs: Chip Select (CS) for the SPI master, default is 0, optional parameter<br>
:param int spi_speed: SPI frequency, default 100 kHz, optional parameter<br>
:raises IOError: If SPI bus has already been opened</tt></dd></dl>
<dl><dt><a name="Pixtend-open_dac"><strong>open_dac</strong></a>(self, spi_channel<font color="#909090">=0</font>, spi_cs<font color="#909090">=1</font>, spi_speed<font color="#909090">=100000</font>)</dt><dd><tt>Open SPI Master 0 with Chip Select 1 on the Raspberry Pi to start the communication<br>
with the DAC on the PiXtend board.<br>
<br>
:param int spi_channel: Number of the SPI master, default is 0, optional parameter<br>
:param int spi_cs: Chip Select (CS) for the SPI master for the DAC, default is 1, optional parameter<br>
:param int spi_speed: SPI frequency, default 100 kHz, optional parameter<br>
:raises IOError: If SPI bus has already been opened</tt></dd></dl>
<dl><dt><a name="Pixtend-pwm_ctrl_configure"><strong>pwm_ctrl_configure</strong></a>(self)</dt><dd><tt>Configures the PWM control of the microcontroller on the PiXtend board. The data transferred includes<br>
all PWM settings like the Mode, OD setting and the Clock Select for the PWMs as well as the frequency.</tt></dd></dl>
<dl><dt><a name="Pixtend-set_dac_output"><strong>set_dac_output</strong></a>(self, value)</dt><dd><tt>Set the analog output value for the chosen DAC. The active DAC can be chosen with the property 'dac_selection'.<br>
The value 0 or constant DAC_A selects DAC A and the value 1 or constant DAC_B selects DAC B.<br>
Example:<br>
Selecting and setting DAC A:<br>
p.dac_selection = p.DAC_A<br>
p.set_dac_output (512)<br>
<br>
Selecting and setting DAC B:<br>
p.dac_selection = p.DAC_B<br>
p.set_dac_output (256)<br>
<br>
:param int value: Output value for the chosen DAC.<br>
:raises ValueError: If value is smaller then 0 or larger then 1023</tt></dd></dl>
<hr>
Static methods defined here:<br>
<dl><dt><a name="Pixtend-update_rtc"><strong>update_rtc</strong></a>()</dt><dd><tt>Update the hardware real time clock (RTC) with the current Linux system time.<br>
The system time is updated by the NTP service, which is active by default, if it is able to connect to<br>
the Internet and get the current time and date.</tt></dd></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<dl><dt><strong>analog_input0</strong></dt>
<dd><tt>Get analog input 0 value as float in Volts. The returned value is based on the 10 volts jumper setting.</tt></dd>
</dl>
<dl><dt><strong>analog_input0_10volts_jumper</strong></dt>
<dd><tt>Get or Set the 10 volts jumper setting, depending if the jumper was physically set on the PiXtend board.<br>
The library needs to know this setting to perform correct calculations of the raw analog<br>
values of the analog inputs when they are converted their final float value. Applies only to AI0 and AI1<br>
as these 2 inputs measure voltage.</tt></dd>
</dl>
<dl><dt><strong>analog_input0_nos</strong></dt>
<dd><tt>Get or Set the Number of Samples (NoS) the analog input 0 should take from the incoming analog signal.<br>
Possible NoS values are 1, 5, 10 (default) and 50. If something is wrong -1 is returned.<br>
<br>
:return: Decimal value of the Number of Samples (NoS) <br>
:rtype: int<br>
:raises ValueError: If passed value is not 1, 5, 10, 50</tt></dd>
</dl>
<dl><dt><strong>analog_input0_raw</strong></dt>
<dd><tt>Get the raw value of analog input 0.</tt></dd>
</dl>
<dl><dt><strong>analog_input1</strong></dt>
<dd><tt>Get analog input 1 value as float in Volts. The returned value is based on the 10 volts jumper setting.</tt></dd>
</dl>
<dl><dt><strong>analog_input1_10volts_jumper</strong></dt>
<dd><tt>Get or Set the 10 volts jumper setting, depending if the jumper was physically set on the PiXtend board.<br>
The library needs to know this setting to perform correct calculations of the raw analog<br>
values of the analog inputs when they are converted their final float value. Applies only to AI0 and AI1<br>
as these 2 inputs measure voltage.</tt></dd>
</dl>
<dl><dt><strong>analog_input1_nos</strong></dt>
<dd><tt>Get or Set the Number of Samples (NoS) the analog input 1 should take from the incoming analog signal.<br>
Possible NoS values are 1, 5, 10 (default) and 50. If something is wrong -1 is returned.<br>
<br>
:return: Decimal value of the Number of Samples (NoS) <br>
:rtype: int<br>
:raises ValueError: If passed value is not 1, 5, 10, 50</tt></dd>
</dl>
<dl><dt><strong>analog_input1_raw</strong></dt>
<dd><tt>Get the raw value of analog input 1.</tt></dd>
</dl>
<dl><dt><strong>analog_input2</strong></dt>
<dd><tt>Get analog input 2 value as float in Ampere (mA).</tt></dd>
</dl>
<dl><dt><strong>analog_input2_nos</strong></dt>
<dd><tt>Get or Set the Number of Samples (NoS) the analog input 2 should take from the incoming analog signal.<br>
Possible NoS values are 1, 5, 10 (default) and 50. If something is wrong -1 is returned.<br>
<br>
:return: Decimal value of the Number of Samples (NoS) <br>
:rtype: int<br>
:raises ValueError: If passed value is not 1, 5, 10, 50</tt></dd>
</dl>
<dl><dt><strong>analog_input2_raw</strong></dt>
<dd><tt>Get the raw value of analog input 2.</tt></dd>
</dl>
<dl><dt><strong>analog_input3</strong></dt>
<dd><tt>Get analog input 3 value as float in Ampere (mA).</tt></dd>
</dl>
<dl><dt><strong>analog_input3_nos</strong></dt>
<dd><tt>Get or Set the Number of Samples (NoS) the analog input 3 should take from the incoming analog signal.<br>
Possible NoS values are 1, 5, 10 (default) and 50. If something is wrong -1 is returned.<br>
<br>
:return: Decimal value of the Number of Samples (NoS) <br>
:rtype: int<br>
:raises ValueError: If passed value is not 1, 5, 10, 50</tt></dd>
</dl>
<dl><dt><strong>analog_input3_raw</strong></dt>
<dd><tt>Get the raw value of analog input 3.</tt></dd>
</dl>
<dl><dt><strong>analog_input_nos_freq</strong></dt>
<dd><tt>Get or Set the Clock Select of the A/D converter of the microcontroller on the PiXtend board.<br>
Possible float values are 0.125, 0.250, 0.500, 1.0, 2.0, 4.0 and 8.0. The unit is Mhz.<br>
<br>
:return: Float value of the currently set A/D converter frequency<br>
:rtype: float</tt></dd>
</dl>
<dl><dt><strong>dac_selection</strong></dt>
<dd><tt>Get or Set the DAC selection. There are 2 DAC's on the PiXtend board. DAC A = 0 and DAC B = 1.<br>
<br>
:return: selected DAC, 0 = DAC A and 1 = DAC B<br>
:rtype: int</tt></dd>
</dl>
<dl><dt><strong>dht0</strong></dt>
<dd><tt>Get or Set the 1-Wire setting for GPIO 0. Default is 'off' (0), if set to 'on' (1) means 1-wire sensors<br>
like DHT11, DHT22 and AM2302 can be used at this GPIO. The direction bit (input/output) will be ignored if<br>
this property is set to 'on' (1).</tt></dd>
</dl>
<dl><dt><strong>dht1</strong></dt>
<dd><tt>Get or Set the 1-Wire setting for GPIO 1. Default is 'off' (0), if set to 'on' (1) means 1-wire sensors<br>
like DHT11, DHT22 and AM2302 can be used at this GPIO. The direction bit (input/output) will be ignored if<br>
this property is set to 'on' (1).</tt></dd>
</dl>
<dl><dt><strong>dht2</strong></dt>
<dd><tt>Get or Set the 1-Wire setting for GPIO 2. Default is 'off' (0), if set to 'on' (1) means 1-wire sensors<br>
like DHT11, DHT22 and AM2302 can be used at this GPIO. The direction bit (input/output) will be ignored if<br>
this property is set to 'on' (1).</tt></dd>
</dl>
<dl><dt><strong>dht3</strong></dt>
<dd><tt>Get or Set the 1-Wire setting for GPIO 3. Default is 'off' (0), if set to 'on' (1) means 1-wire sensors<br>
like DHT11, DHT22 and AM2302 can be used at this GPIO. The direction bit (input/output) will be ignored if<br>
this property is set to 'on' (1).</tt></dd>
</dl>
<dl><dt><strong>di0</strong></dt>
<dd><tt>Get the state of digital input 0. A value of 0 means 'off' and a value of 1 means 'on'.<br>
This property is just a shorter version in terms of wording: digital_input0 <--> di0</tt></dd>
</dl>
<dl><dt><strong>di1</strong></dt>
<dd><tt>Get the state of digital input 1. A value of 0 means 'off' and a value of 1 means 'on'.<br>
This property is just a shorter version in terms of wording: digital_input1 <--> di1</tt></dd>
</dl>
<dl><dt><strong>di2</strong></dt>
<dd><tt>Get the state of digital input 2. A value of 0 means 'off' and a value of 1 means 'on'.<br>
This property is just a shorter version in terms of wording: digital_input2 <--> di2</tt></dd>
</dl>
<dl><dt><strong>di3</strong></dt>
<dd><tt>Get the state of digital input 3. A value of 0 means 'off' and a value of 1 means 'on'.<br>
This property is just a shorter version in terms of wording: digital_input3 <--> di3</tt></dd>
</dl>
<dl><dt><strong>di4</strong></dt>
<dd><tt>Get the state of digital input 4. A value of 0 means 'off' and a value of 1 means 'on'.<br>
This property is just a shorter version in terms of wording: digital_input4 <--> di4</tt></dd>
</dl>
<dl><dt><strong>di5</strong></dt>
<dd><tt>Get the state of digital input 5. A value of 0 means 'off' and a value of 1 means 'on'.<br>
This property is just a shorter version in terms of wording: digital_input5 <--> di5</tt></dd>
</dl>
<dl><dt><strong>di6</strong></dt>
<dd><tt>Get the state of digital input 6. A value of 0 means 'off' and a value of 1 means 'on'.<br>
This property is just a shorter version in terms of wording: digital_input6 <--> di6</tt></dd>
</dl>
<dl><dt><strong>di7</strong></dt>
<dd><tt>Get the state of digital input 7. A value of 0 means 'off' and a value of 1 means 'on'.<br>
This property is just a shorter version in terms of wording: digital_input7 <--> di7</tt></dd>
</dl>
<dl><dt><strong>digital_input0</strong></dt>
<dd><tt>Get the state of digital input 0. A value of 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>digital_input1</strong></dt>
<dd><tt>Get the state of digital input 1. A value pf 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>digital_input2</strong></dt>
<dd><tt>Get the state of digital input 2. A value of 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>digital_input3</strong></dt>
<dd><tt>Get the state of digital input 3. A value of 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>digital_input4</strong></dt>
<dd><tt>Get the state of digital input 4. A value of 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>digital_input5</strong></dt>
<dd><tt>Get the state of digital input 5. A value of 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>digital_input6</strong></dt>
<dd><tt>Get the state of digital input 6. A value of 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>digital_input7</strong></dt>
<dd><tt>Get the state of digital input 7. A value of 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>digital_output0</strong></dt>
<dd><tt>Get or Set the state of digital output 0. A value 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>digital_output1</strong></dt>
<dd><tt>Get or Set the state of digital output 1. A value 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>digital_output2</strong></dt>
<dd><tt>Get or Set the state of digital output 2. A value 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>digital_output3</strong></dt>
<dd><tt>Get or Set the state of digital output 3. A value 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>digital_output4</strong></dt>
<dd><tt>Get or Set the state of digital output 4. A value 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>digital_output5</strong></dt>
<dd><tt>Get or Set the state of digital output 5. A value 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>do0</strong></dt>
<dd><tt>Get or Set the state of digital output 0. A value 0 means 'off' and a value of 1 means 'on'.<br>
This property is just a shorter version in terms of wording: digital_output0 <--> do0</tt></dd>
</dl>
<dl><dt><strong>do1</strong></dt>
<dd><tt>Get or Set the state of digital output 1. A value 0 means 'off' and a value of 1 means 'on'.<br>
This property is just a shorter version in terms of wording: digital_output1 <--> do1</tt></dd>
</dl>
<dl><dt><strong>do2</strong></dt>
<dd><tt>Get or Set the state of digital output 2. A value 0 means 'off' and a value of 1 means 'on'.<br>
This property is just a shorter version in terms of wording: digital_output2 <--> do2</tt></dd>
</dl>
<dl><dt><strong>do3</strong></dt>
<dd><tt>Get or Set the state of digital output 3. A value 0 means 'off' and a value of 1 means 'on'.<br>
This property is just a shorter version in terms of wording: digital_output3 <--> do3</tt></dd>
</dl>
<dl><dt><strong>do4</strong></dt>
<dd><tt>Get or Set the state of digital output 4. A value 0 means 'off' and a value of 1 means 'on'.<br>
This property is just a shorter version in terms of wording: digital_output4 <--> do4</tt></dd>
</dl>
<dl><dt><strong>do5</strong></dt>
<dd><tt>Get or Set the state of digital output 5. A value 0 means 'off' and a value of 1 means 'on'.<br>
This property is just a shorter version in terms of wording: digital_output5 <--> do5</tt></dd>
</dl>
<dl><dt><strong>gpio0</strong></dt>
<dd><tt>Get or Set the state of GPIO 0. The value 0 means 'off' and a value of 1 means 'on'.<br>
<br>
Example:<br>
p.gpio0 = p.ON # Turns the GPIO on<br>
p.gpio0 = p.OFF # Turns the GPIO off<br>
or use<br>
p.gpio0 = 1 # Turns the GPIO on<br>
p.gpio0 = 0 # Turns the GPIO off</tt></dd>
</dl>
<dl><dt><strong>gpio0_direction</strong></dt>
<dd><tt>Get or Set the direction of GPIO 0, input or output is possible.<br>
<br>
Example:<br>
p.gpio0_direction = p.GPIO_INPUT<br>
p.gpio0_direction = p.GPIO_OUTPUT<br>
<br>
or<br>
<br>
p.gpio0_direction = 0 # Input<br>
p.gpio0_direction = 1 # Output</tt></dd>
</dl>
<dl><dt><strong>gpio1</strong></dt>
<dd><tt>Get or Set the state of GPIO 1. The value 0 means 'off' and a value of 1 means 'on'.<br>
<br>
Example:<br>
p.gpio1 = p.ON # Turns the GPIO on<br>
p.gpio1 = p.OFF # Turns the GPIO off<br>
or use<br>
p.gpio1 = 1 # Turns the GPIO on<br>
p.gpio1 = 0 # Turns the GPIO off</tt></dd>
</dl>
<dl><dt><strong>gpio1_direction</strong></dt>
<dd><tt>Get or Set the direction of GPIO 1, input or output is possible.<br>
<br>
Example:<br>
p.gpio1_direction = p.GPIO_INPUT<br>
p.gpio1_direction = p.GPIO_OUTPUT<br>
<br>
or<br>
<br>
p.gpio1_direction = 0 # Input<br>
p.gpio1_direction = 1 # Output</tt></dd>
</dl>
<dl><dt><strong>gpio2</strong></dt>
<dd><tt>Get or Set the state of GPIO 2. The value 0 means 'off' and a value of 1 means 'on'.<br>
<br>
Example:<br>
p.gpio2 = p.ON # Turns the GPIO on<br>
p.gpio2 = p.OFF # Turns the GPIO off<br>
or use<br>
p.gpio2 = 1 # Turns the GPIO on<br>
p.gpio2 = 0 # Turns the GPIO off</tt></dd>
</dl>
<dl><dt><strong>gpio2_direction</strong></dt>
<dd><tt>Get or Set the direction of GPIO 2, input or output is possible.<br>
<br>
Example:<br>
p.gpio2_direction = p.GPIO_INPUT<br>
p.gpio2_direction = p.GPIO_OUTPUT<br>
<br>
or<br>
<br>
p.gpio2_direction = 0 # Input<br>
p.gpio2_direction = 1 # Output</tt></dd>
</dl>
<dl><dt><strong>gpio3</strong></dt>
<dd><tt>Get or Set the state of GPIO 3. The value 0 means 'off' and a value of 1 means 'on'.<br>
<br>
Example:<br>
p.gpio3 = p.ON # Turns the GPIO on<br>
p.gpio3 = p.OFF # Turns the GPIO off<br>
or use<br>
p.gpio3 = 1 # Turns the GPIO on<br>
p.gpio3 = 0 # Turns the GPIO off</tt></dd>
</dl>
<dl><dt><strong>gpio3_direction</strong></dt>
<dd><tt>Get or Set the direction of GPIO 3, input or output is possible.<br>
<br>
Example:<br>
p.gpio3_direction = p.GPIO_INPUT<br>
p.gpio3_direction = p.GPIO_OUTPUT<br>
<br>
or<br>
<br>
p.gpio3_direction = 0 # Input<br>
p.gpio3_direction = 1 # Output</tt></dd>
</dl>
<dl><dt><strong>h0_dht11</strong></dt>
<dd><tt>Get the converted humidity value from humidity input 0 if a DHT11 sensor is physically attached.</tt></dd>
</dl>
<dl><dt><strong>h0_dht22</strong></dt>
<dd><tt>Get the converted humidity value from humidity input 0 if a DHT22 sensor is physically attached.</tt></dd>
</dl>
<dl><dt><strong>h1_dht11</strong></dt>
<dd><tt>Get the converted humidity value from humidity input 1 if a DHT11 sensor is physically attached.</tt></dd>
</dl>
<dl><dt><strong>h1_dht22</strong></dt>
<dd><tt>Get the converted humidity value from humidity input 1 if a DHT22 sensor is physically attached.</tt></dd>
</dl>
<dl><dt><strong>h2_dht11</strong></dt>
<dd><tt>Get the converted humidity value from humidity input 2 if a DHT11 sensor is physically attached.</tt></dd>
</dl>
<dl><dt><strong>h2_dht22</strong></dt>
<dd><tt>Get the converted humidity value from humidity input 2 if a DHT22 sensor is physically attached.</tt></dd>
</dl>
<dl><dt><strong>h3_dht11</strong></dt>
<dd><tt>Get the converted humidity value from humidity input 3 if a DHT11 sensor is physically attached.</tt></dd>
</dl>
<dl><dt><strong>h3_dht22</strong></dt>
<dd><tt>Get the converted humidity value from humidity input 3 if a DHT22 sensor is physically attached.</tt></dd>
</dl>
<dl><dt><strong>hum_input0_raw</strong></dt>
<dd><tt>Get the humidity raw value from humidity input 0.</tt></dd>
</dl>
<dl><dt><strong>hum_input1_raw</strong></dt>
<dd><tt>Get the humidity raw value from humidity input 1.</tt></dd>
</dl>
<dl><dt><strong>hum_input2_raw</strong></dt>
<dd><tt>Get the humidity raw value from humidity input 2.</tt></dd>
</dl>
<dl><dt><strong>hum_input3_raw</strong></dt>
<dd><tt>Get the humidity raw value from humidity input 3.</tt></dd>
</dl>
<dl><dt><strong>pwm0</strong></dt>
<dd><tt>Get or Set the PWM 0 duty cycle. This value has to correspond to the PWM freq/signal period configuration.<br>
The allowed values for PWM 0 are 0 to 65000.<br>
<br>
Example:<br>
pwm_ctrl_cs0 = 1, pwm_ctrl_cs1 = 1, pwm_ctrl_cs2 = 0, pwm_ctrl_mode = 1 and pwm_ctrl_period = 5000<br>
* If pwm0 is set to 2500 the duty cycle will be 50%<br>
* If pwm0 > pwm_ctrl_period the PWM channel will be continuously logical 1<br>
* If pwm0 = 0 the PWM channel will be continuously logical 0</tt></dd>
</dl>
<dl><dt><strong>pwm1</strong></dt>
<dd><tt>Get or Set the PWM 1 duty cycle. This value has to correspond to the PWM freq/signal period configuration.<br>
The allowed values for PWM 1 are 0 to 65000.<br>
<br>
Example:<br>
pwm_ctrl_cs0 = 1, pwm_ctrl_cs1 = 1, pwm_ctrl_cs2 = 0, pwm_ctrl_mode = 1 and pwm_ctrl_period = 5000<br>
* If pwm1 is set to 2500 the duty cycle will be 50%.<br>
* If pwm1 > pwm_ctrl_period the PWM channel will be continuously logical 1<br>
* If pwm1 = 0 the PWM channel will be continuously logical 0</tt></dd>
</dl>
<dl><dt><strong>pwm_ctrl_cs0</strong></dt>
<dd><tt>Get or Set the Clock Select bit 0 (CS0) for both PWMs. This setting will be ignored if PWMs are in servo mode.<br>
A value of 1 means this CS is 'on' (selected) and 0 means 'off' (not selected).</tt></dd>
</dl>
<dl><dt><strong>pwm_ctrl_cs1</strong></dt>
<dd><tt>Get or Set the Clock Select bit 1 (CS1) for both PWMs. This setting will be ignored if PWMs are in servo mode.<br>
A value of 1 means this CS is 'on' (selected) and 0 means 'off' (not selected).</tt></dd>
</dl>
<dl><dt><strong>pwm_ctrl_cs2</strong></dt>
<dd><tt>Get or Set the Clock Select bit 2 (CS2) for both PWMs. This setting will be ignored if PWMs are in servo mode.<br>
A value of 1 means this CS is 'on' (selected) and 0 means 'off' (not selected).</tt></dd>
</dl>
<dl><dt><strong>pwm_ctrl_mode</strong></dt>
<dd><tt>Get or Set the PWM mode. A value of 0 means the PWMs are in servo mode, a value of 1 means both PWMs are<br>
in PWM mode.</tt></dd>
</dl>
<dl><dt><strong>pwm_ctrl_od0</strong></dt>
<dd><tt>Get or Set the Over Drive (OD) value for PWM 0. A value of 0 means 'off' and 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>pwm_ctrl_od1</strong></dt>
<dd><tt>Get or Set the Over Drive (OD) value for PWM 1. A value of 0 means 'off' and 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>pwm_ctrl_period</strong></dt>
<dd><tt>Get or Set the frequency/signal period length of the PWMs. Values from 0 to 65000 are allowed.<br>
<br>
Example:<br>
pwm_ctrl_cs0 = 1, pwm_ctrl_cs1 = 1, pwm_ctrl_cs2 = 0, pwm_ctrl_mode = 1 and pwm_ctrl_period = 1000<br>
PWM Period length = uMC Freq / Prescaler / PWM_CTRL1..2<br>
PWM Period length = 16 MHz / 64 / 1000 = 250 Hz</tt></dd>
</dl>
<dl><dt><strong>relay0</strong></dt>
<dd><tt>Get or Set the state of relay 0. A value of 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>relay1</strong></dt>
<dd><tt>Get or Set the state of relay 1. A value of 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>relay2</strong></dt>
<dd><tt>Get or Set the state of relay 2. A value of 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>relay3</strong></dt>
<dd><tt>Get or Set the state of relay 3. A value of 0 means 'off' and a value of 1 means 'on'.</tt></dd>
</dl>
<dl><dt><strong>serial_mode</strong></dt>
<dd><tt>Get or Set the serial mode of the PiXtend board. Use boolean values: False = RS232 and True = RS485<br>
<br>
Example:<br>
p.serial_mode = p.RS232 # or p.serial_mode = False<br>
or<br>
p.serial_mode = p.RS485 # or p.serial_mode = True<br>
<br>
:return: Value of the serial mode<br>
:rtype: bool</tt></dd>
</dl>
<dl><dt><strong>servo0</strong></dt>
<dd><tt>Get or Set the value for PWM 0 in servo mode. Possible values are 0 to 250.</tt></dd>
</dl>
<dl><dt><strong>servo1</strong></dt>
<dd><tt>Get or Set the value for PWM 1 in servo mode. Possible values are 0 to 250.</tt></dd>
</dl>
<dl><dt><strong>t0_dht11</strong></dt>
<dd><tt>Get the converted temperature value from temperature input 0 from a DHT11 sensor.</tt></dd>
</dl>
<dl><dt><strong>t0_dht22</strong></dt>
<dd><tt>Get the converted temperature value from temperature input 0 from a DHT22 sensor.</tt></dd>
</dl>
<dl><dt><strong>t1_dht11</strong></dt>
<dd><tt>Get the converted temperature value from temperature input 1 from a DHT11 sensor.</tt></dd>
</dl>
<dl><dt><strong>t1_dht22</strong></dt>
<dd><tt>Get the converted temperature value from temperature input 1 from a DHT22 sensor.</tt></dd>
</dl>
<dl><dt><strong>t2_dht11</strong></dt>
<dd><tt>Get the converted temperature value from temperature input 2 from a DHT11 sensor.</tt></dd>
</dl>
<dl><dt><strong>t2_dht22</strong></dt>
<dd><tt>Get the converted temperature value from temperature input 2 from a DHT22 sensor.</tt></dd>
</dl>
<dl><dt><strong>t3_dht11</strong></dt>
<dd><tt>Get the converted temperature value from temperature input 3 from a DHT11 sensor.</tt></dd>
</dl>
<dl><dt><strong>t3_dht22</strong></dt>
<dd><tt>Get the converted temperature value from temperature input 3 from a DHT22 sensor.</tt></dd>
</dl>
<dl><dt><strong>temp_input0_raw</strong></dt>
<dd><tt>Get the temperature raw value from temperature input 0.</tt></dd>
</dl>
<dl><dt><strong>temp_input1_raw</strong></dt>
<dd><tt>Get the temperature raw value from temperature input 1.</tt></dd>
</dl>
<dl><dt><strong>temp_input2_raw</strong></dt>
<dd><tt>Get the temperature raw value from temperature input 2.</tt></dd>
</dl>
<dl><dt><strong>temp_input3_raw</strong></dt>
<dd><tt>Get the temperature raw value from temperature input 3.</tt></dd>
</dl>
<dl><dt><strong>uc_board_version</strong></dt>
<dd><tt>Get the PiXtend board version.<br>
<br>
Example:<br>
A value of 13 means board version 1.3.x<br>
<br>
:return: Board version of the PiXtend board<br>
:rtype: c_uint8</tt></dd>
</dl>
<dl><dt><strong>uc_control</strong></dt>
<dd><tt>Get or Set the microcontroller's control register. If the automatic mode is off, setting<br>
a new value will have immediate effect.<br>
<br>
:return: Current value of the control byte in the microcontroller<br>
:rtype: c_uint8<br>
:raises ValueError: If the passed value is smaller then 0 or larger then 255</tt></dd>
</dl>
<dl><dt><strong>uc_fw_version</strong></dt>
<dd><tt>Get the microcontroller firmware version on the PiXtend board.<br>
<br>
Example:<br>
A value of 2 means firmware version 2.x is installed on the microcontroller<br>
<br>
:return: Firmware version of the microcontroller on the PiXtend board<br>
:rtype: c_uint8</tt></dd>
</dl>
<dl><dt><strong>uc_status</strong></dt>
<dd><tt>Get the microcontroller status byte.<br>
<br>
:return: Status byte of the microcontroller on the PiXtend board<br>
:rtype: c_uint8</tt></dd>
</dl>
<dl><dt><strong>use_fahrenheit</strong></dt>
<dd><tt>Get or Set if the conversion of the temperature raw value should be done in Fahrenheit.<br>
Default is 'False', meaning by getting the temperature from t0_dht22 to t3_dht22 or from t0_dht11 to t3_dht11<br>
the value will be in degrees Celsius, if set to 'True' the values will be in Fahrenheit.<br>
<br>
:returns: Bool value, 'False' for Celsius and 'True' for Fahrenheit<br>
:rtype: bool</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>BIT_0</strong> = 0</dl>
<dl><dt><strong>BIT_1</strong> = 1</dl>
<dl><dt><strong>BIT_10</strong> = 10</dl>
<dl><dt><strong>BIT_11</strong> = 11</dl>
<dl><dt><strong>BIT_12</strong> = 12</dl>
<dl><dt><strong>BIT_13</strong> = 13</dl>
<dl><dt><strong>BIT_14</strong> = 14</dl>
<dl><dt><strong>BIT_15</strong> = 15</dl>
<dl><dt><strong>BIT_2</strong> = 2</dl>
<dl><dt><strong>BIT_3</strong> = 3</dl>
<dl><dt><strong>BIT_4</strong> = 4</dl>
<dl><dt><strong>BIT_5</strong> = 5</dl>
<dl><dt><strong>BIT_6</strong> = 6</dl>
<dl><dt><strong>BIT_7</strong> = 7</dl>
<dl><dt><strong>BIT_8</strong> = 8</dl>
<dl><dt><strong>BIT_9</strong> = 9</dl>
<dl><dt><strong>DAC_A</strong> = 0</dl>
<dl><dt><strong>DAC_B</strong> = 1</dl>
<dl><dt><strong>GPIO_INPUT</strong> = 0</dl>
<dl><dt><strong>GPIO_OUTPUT</strong> = 1</dl>
<dl><dt><strong>JUMPER_10V</strong> = 1</dl>
<dl><dt><strong>JUMPER_5V</strong> = 0</dl>
<dl><dt><strong>OFF</strong> = 0</dl>
<dl><dt><strong>ON</strong> = 1</dl>
<dl><dt><strong>PIXTEND_MAX_RELAYS</strong> = 4</dl>
<dl><dt><strong>PIXTEND_MC_RESET_PIN</strong> = 23</dl>
<dl><dt><strong>PIXTEND_SERIAL_PIN</strong> = 18</dl>
<dl><dt><strong>PIXTEND_SPI_AUTO_MODE</strong> = 231</dl>
<dl><dt><strong>PIXTEND_SPI_ENABLE_PIN</strong> = 24</dl>
<dl><dt><strong>PIXTEND_SPI_GET_AIN0</strong> = 3</dl>
<dl><dt><strong>PIXTEND_SPI_GET_AIN1</strong> = 4</dl>
<dl><dt><strong>PIXTEND_SPI_GET_AIN2</strong> = 5</dl>
<dl><dt><strong>PIXTEND_SPI_GET_AIN3</strong> = 6</dl>
<dl><dt><strong>PIXTEND_SPI_GET_DIN</strong> = 2</dl>
<dl><dt><strong>PIXTEND_SPI_GET_DOUT</strong> = 18</dl>
<dl><dt><strong>PIXTEND_SPI_GET_GPIO</strong> = 9</dl>
<dl><dt><strong>PIXTEND_SPI_GET_HUM0</strong> = 14</dl>
<dl><dt><strong>PIXTEND_SPI_GET_HUM1</strong> = 15</dl>
<dl><dt><strong>PIXTEND_SPI_GET_HUM2</strong> = 16</dl>
<dl><dt><strong>PIXTEND_SPI_GET_HUM3</strong> = 17</dl>
<dl><dt><strong>PIXTEND_SPI_GET_RELAY</strong> = 19</dl>
<dl><dt><strong>PIXTEND_SPI_GET_TEMP0</strong> = 10</dl>
<dl><dt><strong>PIXTEND_SPI_GET_TEMP1</strong> = 11</dl>
<dl><dt><strong>PIXTEND_SPI_GET_TEMP2</strong> = 12</dl>
<dl><dt><strong>PIXTEND_SPI_GET_TEMP3</strong> = 13</dl>
<dl><dt><strong>PIXTEND_SPI_GET_UC_STAT</strong> = 138</dl>
<dl><dt><strong>PIXTEND_SPI_GET_UC_VER</strong> = 137</dl>
<dl><dt><strong>PIXTEND_SPI_HANDSHAKE</strong> = 170</dl>
<dl><dt><strong>PIXTEND_SPI_NOT_FOUND</strong> = -1</dl>
<dl><dt><strong>PIXTEND_SPI_NULL_BYTE</strong> = 0</dl>
<dl><dt><strong>PIXTEND_SPI_SET_AI_CTRL</strong> = 135</dl>
<dl><dt><strong>PIXTEND_SPI_SET_DOUT</strong> = 1</dl>
<dl><dt><strong>PIXTEND_SPI_SET_GPIO</strong> = 8</dl>
<dl><dt><strong>PIXTEND_SPI_SET_GPIO_CTRL</strong> = 133</dl>
<dl><dt><strong>PIXTEND_SPI_SET_PWM0</strong> = 130</dl>
<dl><dt><strong>PIXTEND_SPI_SET_PWM1</strong> = 131</dl>
<dl><dt><strong>PIXTEND_SPI_SET_PWM_CTRL</strong> = 132</dl>
<dl><dt><strong>PIXTEND_SPI_SET_RASPSTAT</strong> = 136</dl>
<dl><dt><strong>PIXTEND_SPI_SET_RELAY</strong> = 7</dl>
<dl><dt><strong>PIXTEND_SPI_SET_SERVO0</strong> = 128</dl>
<dl><dt><strong>PIXTEND_SPI_SET_SERVO1</strong> = 129</dl>
<dl><dt><strong>PIXTEND_SPI_SET_UC_CTRL</strong> = 134</dl>
<dl><dt><strong>PWM_MODE</strong> = 1</dl>
<dl><dt><strong>RS232</strong> = False</dl>
<dl><dt><strong>RS485</strong> = True</dl>
<dl><dt><strong>SERVO_MODE</strong> = 0</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="UcVersionBytes">class <strong>UcVersionBytes</strong></a>(<a href="_ctypes.html#Structure">_ctypes.Structure</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>This is a structure for two (2) single bytes to store the firmware version and the board version reported by the<br>
microcontroller on the PiXtend board.<br>
<br>
Example:<br>
UC_VERSIONH = 13 means board version is 1.3.x<br>
UC_VERSIONL = 2 means firmware version 2.x is installed on the microcontroller<br>
<br>
:type UC_VERSIONL : c_uint8<br>
:type UC_VERSIONH : c_uint8<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="pixtendlib.html#UcVersionBytes">UcVersionBytes</a></dd>
<dd><a href="_ctypes.html#Structure">_ctypes.Structure</a></dd>
<dd>_ctypes._CData</dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="UcVersionBytes-__init__"><strong>__init__</strong></a>(self, *args, **kwargs)</dt></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>UC_VERSIONH</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>UC_VERSIONL</strong></dt>
<dd><tt>Structure/Union member</tt></dd>
</dl>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
Data and other attributes inherited from <a href="_ctypes.html#Structure">_ctypes.Structure</a>:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of _ctypes.PyCStructType object><dd><tt>T.<a href="#UcVersionBytes-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
<hr>
Methods inherited from _ctypes._CData:<br>
<dl><dt><a name="UcVersionBytes-__ctypes_from_outparam__"><strong>__ctypes_from_outparam__</strong></a>(...)</dt></dl>
<dl><dt><a name="UcVersionBytes-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#UcVersionBytes-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl>
<dl><dt><a name="UcVersionBytes-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
<dl><dt><a name="UcVersionBytes-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>__author__</strong> = 'Robin Turner'<br>
<strong>__version__</strong> = '0.1.1'</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#7799ee">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
<td width="100%">Robin Turner</td></tr></table>
</body></html>
|