User Tools

Site Tools


getting_started:tutorials:hal3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
getting_started:tutorials:hal3 [2026/05/13 10:50] ursgrafgetting_started:tutorials:hal3 [2026/05/13 10:55] (current) ursgraf
Line 33: Line 33:
 <code> <code>
 $ cat /sys/devices/platform/gpio-sim.0/gpiochip0/sim_gpio0/value $ cat /sys/devices/platform/gpio-sim.0/gpiochip0/sim_gpio0/value
 +</code>
 +
 +Next, change the state of channel 16. This is a critical input in the safety system and causes a transition to safety level //slTwo// when pulled up. 
 +<code>
 +$ echo pull-up | sudo tee /sys/devices/platform/gpio-sim.0/gpiochip0/sim_gpio16/pull
 +</code>
 +To change back to //slOne// change the level back to '0'.
 +<code>
 +$ echo pull-down | sudo tee /sys/devices/platform/gpio-sim.0/gpiochip0/sim_gpio16/pull
 </code> </code>
getting_started/tutorials/hal3.txt · Last modified: by ursgraf