So of course the Digispark needs 5V as I rediscovered when I went to wire it up. I had always run it on USB power until now, and unlike some of my other gadgets it doesn't have a 3v3 converter. Well, it is small. I don't have any spare level converter boards and don't want to wait.
Then I remembered my Bus Pirate. Problem solved...
(Update)
So the bus pirate is working well. (Apart from only having one...)
picocom -b 115200 /dev/ttyUSB0
im5 1 1 2 1 2 2
Wva%:6A
[0x42 r:1][0x01 r:1][0x02 r:1][0x03 r:1][0x06 r:1][0x07 r:1]
This produces SPI reads that match the default values in the datasheet. Seeing as this is the first time I ever used SPI , this is a win :-) /CS ENABLED WRITE: 0x42 READ: 0x12 /CS DISABLED /CS ENABLED WRITE: 0x01 READ: 0x09 /CS DISABLED /CS ENABLED WRITE: 0x02 READ: 0x1A /CS DISABLED /CS ENABLED WRITE: 0x03 READ: 0x0B /CS DISABLED /CS ENABLED WRITE: 0x06 READ: 0x6C /CS DISABLED /CS ENABLED WRITE: 0x07 READ: 0x80 /CS DISABLEDThis could get quite involved, so I might set up a separate place to write about it.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.