Advertisement
lilo_booter

rpany-pi

Mar 6th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. $ rpany-pi-shell
  2. > tool-help rpany-pi
  3. pi : pins-write pwm-bal pwm-ms pwm-range pwm-clock pi-revision wpi-to-gpio phys-to-gpio pad-drive
  4. pin_io : pin-write pin-write-pwm pin-read analog-read analog-write
  5. pin_setup : pin-out pin-in pin-pwm pin-clock pin-up pin-down pin-off
  6. timing : since-milli since-micro delay-milli delay-micro
  7. wiring : wiring-init wiring-gpio wiring-phys wiring-sys
  8. > wiring-init
  9. > 0 pin-out
  10. > 0 1 pin-write
  11. > 0 0 pin-write
  12. > : led-on 0 1 pin-write ;
  13. > : led-off 0 0 pin-write ;
  14. > led-on
  15. > led-off
  16. > led-on 500 delay-milli led-off
  17. > : led-flash led-on 500 delay-milli led-off 500 delay-milli ;
  18. > led-flash
  19. > 10 0 do led-flash loop
  20. > see-vocab user
  21. : led-on 0 1 pin-write ;
  22. : led-off 0 0 pin-write ;
  23. : led-flash led-on 500 delay-milli led-off 500 delay-milli ;
  24. >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement