I'm trying to set up quite a simple bit of code that uses RPIO.PWM to control the brightness of 8 LEDs.
Long story short, I think I might be using the "wrong" channel numbers when initializing the code.
At the moment I do:
self.LEDs is a list of 8 pin numbers to use. It was a range(0, len(self.LEDs)) but I read that channel 0 was being used by the OpSys.
Code: Select all
for i in range(1, len(self.LEDs)+1): PWM.init_channel(i)
It all seems to run as I expect it to, with the LEDs behaving as I want, the problem is after a short while the file system goes "read-only" and I can't edit the Python script any more!
I've copied the card to an image and flashed that on to a different SD card but the same thing happens.
Am I using a DMA channel that I shouldn't be? Or is it possible I have a duff file system (which I've transferred to another card!) and I need to do another back up quite soon?
Any help or pointers would be very much appreciated (rebooting all every time this happens is becoming boring! )
Thanks in advance.