Changeset 2693
- Timestamp:
- Nov 20, 2011 11:23:51 PM (18 months ago)
- File:
-
- 1 edited
-
cpu/arm/olpc/1.75/accelerometer.fth (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cpu/arm/olpc/1.75/accelerometer.fth
r2663 r2693 13 13 : ctl4! ( b -- ) h# 23 acc-reg! ; 14 14 : accelerometer-on ( -- ) h# 47 ctl1! ; 15 : accelerometer-off ( -- ) h# 07 ctl1! ; 15 : accelerometer-off ( -- ) h# 07 ctl1! ; \ should this be 00? 16 16 : wext ( b -- n ) dup h# 8000 and if h# ffff0000 or then ; 17 17 : acceleration@ ( -- x y z ) … … 137 137 final-test? if accelerometer-off false exit then 138 138 139 ." Don't move!" cr 139 140 lis-selftest 140 141 ;
Note: See TracChangeset
for help on using the changeset viewer.
