Advertisement
drabont

Stationeers - simple solar clock

Sep 2nd, 2019
729
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. #=simple solar clock by swagman====================#
  2. # ___ _ ___ _ _ #
  3. # / __| ___ | | __ _ _ _ / __|| | ___ __ | |__ #
  4. # \__ \/ _ \| |/ _` || '_| | (__ | |/ _ \/ _|| / / #
  5. # |___/\___/|_|\__,_||_| \___||_|\___/\__||_\_\ #
  6. #==================================================#
  7. alias SolSens d0 #face to east or west
  8. alias LcdDisp d1
  9. loop:
  10. #--get sec by hour angle
  11. l r0 SolSens SolarAngle
  12. mul r0 r0 600
  13. div r0 r0 180
  14. floor r0 r0
  15. s LcdDisp Setting r0
  16. #--get color
  17. l r0 SolSens Activate
  18. select r0 r0 5 0 #5-day, 0-night
  19. s LcdDisp Color r0
  20. #--
  21. yield
  22. j loop
  23.  
  24.  
  25. * .--.
  26. / / `
  27. + | |
  28. ' \ \__,
  29. * + '--' *
  30. + /\
  31. + .' '. *
  32. * /======\ +
  33. ;:. _ ;
  34. |:. (_) |
  35. |:. _ |
  36. + |:. (_) | *
  37. ;:. ;
  38. .' \:. / `.
  39. / .-'':._.'`-. \
  40. |/ /||\ \|
  41. jgs _..--"""````"""--.._
  42. _.-'`` ``'-._
  43. -' '-
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement