MCUdude / MicroCore

A light-weight Arduino hardware package for ATtiny13
539 stars 87 forks source link

How to update MicroCore last version in platformio ? #120

Closed Witawat closed 3 years ago

Witawat commented 3 years ago

How to update MicroCore last version in platformio ?

platformio use version 1.0.6 but i found in github version 2.0.2 i need update in platformio new version

thankyou

MCUdude commented 3 years ago

Hi!

It's correct that PlatformIO hasn't been updated yet. I will notify the developers, but you should know that 1.0.6 is very stable and proven. I did introduce some breaking changes in 2.0.0, but most of these were removed in 2.0.2 because they caused a lot of trouble.

While you wait for 2.0.2, you can safely use 1.0.6. It's just as good 🙂

Witawat commented 3 years ago

Hi!

It's correct that PlatformIO hasn't been updated yet. I will notify the developers, but you should know that 1.0.6 is very stable and proven. I did introduce some breaking changes in 2.0.0, but most of these were removed in 2.0.2 because they caused a lot of trouble.

While you wait for 2.0.2, you can safely use 1.0.6. It's just as good 🙂

now i update to 2.0.2 .. in version have warning

int Ldr_pin = PB3;

warning: invalid conversion from 'int' to 'analog_pin_t' [-fpermissive] mapLDR = map(analogRead(Ldr_pin), 0, 1023, 0, 10);

this bug ? ^

MCUdude commented 3 years ago

You can't refer to analog pins with PB0..PB5. You have to use A0, A1, A2, or A3. That's because there is a mismatch between the analog and digital pin number.

MCUdude commented 3 years ago

use


analog_pin_t Ldr_pin = A3;

mapLDR = map(analogRead(Ldr_pin), 0, 1023, 0, 10);