This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Rylee's profile picture

OpenPeri Terminal Glasses Code Not Working

Started by Rylee, 24 June 2015 - 11:35 PM
Rylee #1
Posted 25 June 2015 - 01:35 AM
Pastebin: http://pastebin.com/eLXfu4vJ

I'm making a piece of code for my power storage, it should put how much power I have in the resonant energy cell on to my hud, I can't see what's wrong with it. Can anyone help??
Bomb Bloke #2
Posted 25 June 2015 - 08:00 AM
Seems you forgot to describe your problem - what does your script do, as opposed to "working"?
blunty666 #3
Posted 25 June 2015 - 06:06 PM
I'm guessing the problem is that the glasses objects are not updating. You call bridge.sync() at the start of your program, but you need to call this every time you change something so that these changes sync to the glasses. Try putting bridge.sync() just before your sleep in your main loop.