raphnet / wusbmote

Wiimote accessory to USB adapter firmware
http://www.raphnet.net/electronique/wusbmote/index_en.php
GNU General Public License v2.0
11 stars 4 forks source link

Will this work in an ATtiny85? #1

Open Al-eXs opened 7 years ago

Al-eXs commented 7 years ago

Hi, I was just wondering if this would work on an ATtiny85, something like the Digistump's Digispark or the Adafruit's Trinket.

I didn't find anything like this for that kind of AVR boards.

It's interesting to use them as they have the right amount of I/O pins for the job, a compact size and just the right amount of flash and SRAM.

I just want to know if this could work with this tines, what changes should be made to the code.

raphnet commented 7 years ago

It looks possible with some work. I had a look at the project current code size and indeed it should fit if you remove the bootloader. Otherwise if you were to strip stuff you don't need (mouse support and raw I2C access maybe?) you could probably save enough space to keep the loader.

Some code adaptation would be required of course. Based on a quick compilation test without detailed analysis, I spotted the following:

Al-eXs commented 7 years ago

I've been trying to figure it out, and this is what I see after researching some things from another similar projects that use V-USB.

I find that there is a library to use I2C on the Tiny AVR's but I can't understand how to use here.