func init() { rpi.WiringPiSetup() pcd8544.LCDInit(SCLK, DIN, DC, CS, RST, CONTRAST) pcd8544.LCDclear() pcd8544.LCDdisplay() }
func gpio_cleanup() { pcd8544.LCDclear() pcd8544.LCDdisplay() rpi.PinMode(SCLK, rpi.INPUT) rpi.PinMode(DIN, rpi.INPUT) rpi.PinMode(DC, rpi.INPUT) rpi.PinMode(CS, rpi.INPUT) rpi.PinMode(RST, rpi.INPUT) }