Видать не интересует больше никого (((
У меня мега 2560 немного глючет- Иногда ошибки по модбасу
Загружена правда на 50%. Одновременное использование Модбаса слейва и мастера, и всеи перефирии
грузит процессор
yopopol писал(а):Не дождался )) залил через IDE скетч,созданный для Меги. И работает ))Веб странички открывает НАМНОГО быстрее.
Есть,конечно ,заморочки с ней (Arduino due) но в целом пашет без проблем
Не компилируется скетч для ДУЕ. Если ставлю мега2560 то компелируется без проблем.
Ошибки ИДЕ версии 1.6.3
pr47.ino: In function 'void setup()':
pr47.ino:102:1: error: 'TCCR2A' was not declared in this scope
pr47.ino:103:1: error: 'TCCR2B' was not declared in this scope
pr47.ino:104:1: error: 'TIMSK2' was not declared in this scope
pr47.ino:105:1: error: 'TCNT2' was not declared in this scope
pr47.ino:106:25: error: invalid conversion from 'int' to 'eAnalogReference {aka _eAnalogReference}' [-fpermissive]
In file included from C:\Users\Keller_Moi\AppData\Roaming\Arduino15\packages\arduino\hardware\sam\1.6.9\cores\arduino/Arduino.h:205:0,
from C:\Users\Keller_Moi\Documents\Arduino\libraries\Adafruit_INA219-master/Adafruit_INA219.h:21,
from pr47.ino:3:
C:\Users\Keller_Moi\AppData\Roaming\Arduino15\packages\arduino\hardware\sam\1.6.9\cores\arduino/wiring_analog.h:40:13: error: initializing argument 1 of 'void analogReference(eAnalogReference)' [-fpermissive]
extern void analogReference( eAnalogReference ulMode ) ;
^
pr47.ino: In function 'void loop()':
pr47.ino:129:32: error: 'tone' was not declared in this scope
pr47.ino:129:78: error: 'noTone' was not declared in this scope
pr47.ino:142:32: error: 'tone' was not declared in this scope
pr47.ino:142:78: error: 'noTone' was not declared in this scope
pr47.ino: In function 'void TIMER2_OVF_vect()':
pr47.ino:219:3: error: 'TCNT2' was not declared in this scope
pr47.ino: In function 'void _modbusSlaveSendTxBuffer()':
pr47.ino:407:1: error: 'UCSR2A' was not declared in this scope
pr47.ino:407:22: error: 'TXC2' was not declared in this scope
pr47.ino: In function 'void _modbusMasterSendTxBuffer()':
pr47.ino:663:1: error: 'UCSR3A' was not declared in this scope
pr47.ino:663:22: error: 'TXC3' was not declared in this scope
Multiple libraries were found for "Wire.h"
Used: C:\Users\Keller_Moi\Documents\Arduino\libraries\Wire
Not used: C:\Users\Keller_Moi\AppData\Roaming\Arduino15\packages\arduino\hardware\sam\1.6.9\libraries\Wire
Fehler beim Kompilieren.
По ходу проблема с таймерами
Цитата support6502Да пришла нормально, пока не разбирался с ней (сейчас дома, и времени практически нет),
но скоро на вахту, так что там будем добавлять в программу.
Сергей может при следующей возможности добавите DUE.
Ну очень хочется попробовать, да и соблазн на 12 бит большой.
Можно в блоке настройку сделать - 10 или 12 бит Аналог а также для PWM