fun
do
ds = [d4,d5,d6,d7]
rs.fsel = new FunctionSelect.outp
en.fsel = new FunctionSelect.outp
d4.fsel = new FunctionSelect.outp
d5.fsel = new FunctionSelect.outp
d6.fsel = new FunctionSelect.outp
d7.fsel = new FunctionSelect.outp
rs.write(false)
en.write(false)
write(true, "33".to_hex) # init
write(true, "32".to_hex) # init
write(true, "28".to_hex) # 2 lines, 5x7
write(true, "0C".to_hex) # hide cursor
write(true, "06".to_hex) # cursor move right
write(true, "04".to_hex) # turn on display
write(true, "01".to_hex) # clear display
end
lib/bcm2835/bcm2835.nit:318,2--339,4