11/11/2022 0 Comments Attiny88 wire library![]() ![]() ![]() The ADC_REF() macro can be used to convert from the REFS bits to a reference constant if you must - but you shouldn't be using a raw number to select the reference if you want to be able to move it to different parts - The 1.1v internal reference INTERNAL1V1 is 2 on some parts, and 0 on others. potential breakage If you used to refer to a reference with a raw number, instead of the name (ie, if you did analogReference(0) instead of analogReference(DEFAULT), this will be totally broken for values other than zero (and 0 doesn't have a consistent meaning). All the analog reference sources are named consistently, old (deprecated) names for references are still supported, but not recommended.For parts that support both, there is also a way to select bipolar (-512 to 511) vs unipolar (0 to 1023) mode. There is also support for analogRead with Noise Reduction mode (chip goes into sleep mode while taking the reading. #Attiny88 wire library full#These vary per part - some are rather basic, while the t861 and t841 are very fancy - and are listed in full in the part-specific documentation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |