ilovetoflyfpv:
Hi OldSteve
Once again thanks for answering my questions. So the most straight forward option would be to remove the David Mellis Core and replace it with the DrAzzy Core? Am I correct in thinking that the uploading process is the same?
The upload process is identical, regardless of which core is used. It just uploads the finished *.hex file to the chip.
Alternatively, if I stick with the David Mellis Core I need to work out whether setting analogReference(INTERNAL); sets the analog reference voltage to 1.1V or 2.56V. I strongly suspect it's 1.1V.
So do I, and the problem is that since it isn't clear, there's the potnetial for it to confuse you again in the future. That's why I suggested DrAzzy's cores.
I'd love to know what analogReference(6); actually does?.....110 binary = 6 decimal?
Yes. One of the first things you clearly need to do is learn binary. It's an essential part of learning programming.
I didn't watch all of the video you linked, there was no need to, but I noticed that he showed how to install a core manually. You don't need to go through that process. That's what the "Boards Manager" is for.
If you install DrAzzy's core, all you need to do is add an entry to the "Additional Boards Manager URLs" line in the "Preferences" dialog, ">File >Preferences >Additional Boards Manager URLs". The IDE will take care of installation.
It's all covered under "Installation" in the DrAzzy ATtiny page that I linked.
The line to add is:-
http://drazzy.com/package_drazzy.com_index.json
After you do that, in ">Tools >Board", at the bottom, you'll see a whole bunch of new chips listed under "ATtiny Universal". When you select one, "ATtiny x5 Series" for example, there'll be extra options available under "Tools":- "Timer1 Clock", "B.O.D", "Chip" and "Clock", where you can select your specific chip and configuration options.
As I mentioned, with that core and an ATtiny45, you can use the "INTERNAL1V1" and "INTERNAL2V56" options for 'analogReference()', so there'll be no doubt what the reference is, especially in the future if you return to review, modify or copy part of the code to a new program.
DrAzzy's cores also add newer ATtiny boards that aren't covered by David Mellis' cores. There are 14 entries listed under "Board".
David Mellis' cores are good, but getting a bit long in the tooth, lacking features/chips. Time moves on.