# File lib/examples/hysteresis_duel.rb, line 24 def loop my_lcd.setxy 0,0, "direct" my_lcd.setxy 0,1, "one: " my_lcd.print analogRead sensor_one my_lcd.print " two: " my_lcd.print analogRead sensor_two my_lcd.setxy 0,2, "with hysteresis" my_lcd.setxy 0,3, "one: " my_lcd.print sensor_one.with_hyst 4 my_lcd.print " two: " my_lcd.print sensor_two.with_hyst 4 delay 230 end
# File lib/examples/hysteresis_duel.rb, line 17 def setup delay 1000 my_lcd.setxy 0,0, "hysteresis duel" delay 5000 my_lcd.clearscr end