Добрый день!
Помогите пожалуйста решить проблему: собрал схему на основе блютуз HC-06 и БП 12В 2A, при включении может мигнуть и больше ничего, а иногда при включении загорается непрерывно лента и больше ничего, к блютуз подключается, но при смене настроек в приложении ничего не происходит, так же при нажатии кнопки - ноль реакции. Пайку проверил, все прочно и ничего не замыкает, но если постучать пальцем по процессору ардуинки - лента начинает мигать и менять цвета. Собирал на мосфетах IRLR8726TRPBF 30В 85А. Я не отрицаю, что рукожоп, просто подскажите в чем может быть проблема. Может быть ошибка в прошивке? При компиляции выдает такой текст:
C:\ard\GyverRGB_v1.7\GyverRGB_v1.7.ino: In function 'void setup()':
C:\ard\GyverRGB_v1.7\GyverRGB_v1.7.ino:354:57: warning: invalid conversion from 'byte {aka unsigned char}' to 'uint8_t* {aka unsigned char*}' [-fpermissive]
for (byte i = 0; i < 10; i++) eeprom_write_byte(i, 0);
^
In file included from C:\Arduino\hardware\arduino\avr\cores\arduino/USBAPI.h:25:0,
from C:\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:234,
from sketch\GyverRGB_v1.7.ino.cpp:1:
c:\arduino\hardware\tools\avr\avr\include\avr\eeprom.h:166:6: note: initializing argument 1 of 'void eeprom_write_byte(uint8_t*, uint8_t)'
void eeprom_write_byte (uint8_t *__p, uint8_t __value);
^~~~~~~~~~~~~~~~~
C:\ard\GyverRGB_v1.7\GyverRGB_v1.7.ino:356:29: warning: invalid conversion from 'byte {aka unsigned char}' to 'uint16_t* {aka unsigned int*}' [-fpermissive]
eeprom_write_word(i, 0);
^
In file included from C:\Arduino\hardware\arduino\avr\cores\arduino/USBAPI.h:25:0,
from C:\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:234,
from sketch\GyverRGB_v1.7.ino.cpp:1:
c:\arduino\hardware\tools\avr\avr\include\avr\eeprom.h:171:6: note: initializing argument 1 of 'void eeprom_write_word(uint16_t*, uint16_t)'
void eeprom_write_word (uint16_t *__p, uint16_t __value);
^~~~~~~~~~~~~~~~~
C:\ard\GyverRGB_v1.7\GyverRGB_v1.7.ino:357:48: warning: invalid conversion from 'byte {aka unsigned char}' to 'uint16_t* {aka unsigned int*}' [-fpermissive]
if (i % 10 == 0) eeprom_write_word(i, 255);
^
In file included from C:\Arduino\hardware\arduino\avr\cores\arduino/USBAPI.h:25:0,
from C:\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:234,
from sketch\GyverRGB_v1.7.ino.cpp:1:
c:\arduino\hardware\tools\avr\avr\include\avr\eeprom.h:171:6: note: initializing argument 1 of 'void eeprom_write_word(uint16_t*, uint16_t)'
void eeprom_write_word (uint16_t *__p, uint16_t __value);
^~~~~~~~~~~~~~~~~
C:\ard\GyverRGB_v1.7\GyverRGB_v1.7.ino:359:37: warning: invalid conversion from 'int' to 'uint8_t* {aka unsigned char*}' [-fpermissive]
eeprom_write_byte(PRESET_ADDR, 0);
^
In file included from C:\Arduino\hardware\arduino\avr\cores\arduino/USBAPI.h:25:0,
from C:\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:234,
from sketch\GyverRGB_v1.7.ino.cpp:1:
c:\arduino\hardware\tools\avr\avr\include\avr\eeprom.h:166:6: note: initializing argument 1 of 'void eeprom_write_byte(uint8_t*, uint8_t)'
void eeprom_write_byte (uint8_t *__p, uint8_t __value);
^~~~~~~~~~~~~~~~~
C:\ard\GyverRGB_v1.7\GyverRGB_v1.7.ino:360:29: warning: invalid conversion from 'int' to 'uint8_t* {aka unsigned char*}' [-fpermissive]
eeprom_write_byte(201, 0);
^
In file included from C:\Arduino\hardware\arduino\avr\cores\arduino/USBAPI.h:25:0,
from C:\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:234,
from sketch\GyverRGB_v1.7.ino.cpp:1:
c:\arduino\hardware\tools\avr\avr\include\avr\eeprom.h:166:6: note: initializing argument 1 of 'void eeprom_write_byte(uint8_t*, uint8_t)'
void eeprom_write_byte (uint8_t *__p, uint8_t __value);
^~~~~~~~~~~~~~~~~
C:\ard\GyverRGB_v1.7\GyverRGB_v1.7.ino:361:31: warning: invalid conversion from 'int' to 'uint16_t* {aka unsigned int*}' [-fpermissive]
eeprom_write_word(202, 100);
^
In file included from C:\Arduino\hardware\arduino\avr\cores\arduino/USBAPI.h:25:0,
from C:\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:234,
from sketch\GyverRGB_v1.7.ino.cpp:1:
c:\arduino\hardware\tools\avr\avr\include\avr\eeprom.h:171:6: note: initializing argument 1 of 'void eeprom_write_word(uint16_t*, uint16_t)'
void eeprom_write_word (uint16_t *__p, uint16_t __value);
^~~~~~~~~~~~~~~~~
C:\Arduino\libraries\GyverRGB\utility\BTimerDefs.cpp:26:0: warning: "UINT16_MAX" redefined
#define UINT16_MAX 65535
In file included from c:\arduino\hardware\tools\avr\lib\gcc\avr\7.3.0\include\stdint.h:9:0,
from c:\arduino\hardware\tools\avr\avr\include\inttypes.h:37,
from c:\arduino\hardware\tools\avr\avr\include\avr\sfr_defs.h:126,
from c:\arduino\hardware\tools\avr\avr\include\avr\io.h:99,
from C:\Arduino\hardware\arduino\avr\cores\arduino/wiring_private.h:26,
from C:\Arduino\libraries\GyverRGB\utility\BTimerDefs.cpp:23:
c:\arduino\hardware\tools\avr\avr\include\stdint.h:346:0: note: this is the location of the previous definition
#define UINT16_MAX (__CONCAT(INT16_MAX, U) * 2U + 1U)
C:\Arduino\libraries\GyverRGB\utility\BTimerDefs.cpp:27:0: warning: "UINT8_MAX" redefined
#define UINT8_MAX 255
In file included from c:\arduino\hardware\tools\avr\lib\gcc\avr\7.3.0\include\stdint.h:9:0,
from c:\arduino\hardware\tools\avr\avr\include\inttypes.h:37,
from c:\arduino\hardware\tools\avr\avr\include\avr\sfr_defs.h:126,
from c:\arduino\hardware\tools\avr\avr\include\avr\io.h:99,
from C:\Arduino\hardware\arduino\avr\cores\arduino/wiring_private.h:26,
from C:\Arduino\libraries\GyverRGB\utility\BTimerDefs.cpp:23:
c:\arduino\hardware\tools\avr\avr\include\stdint.h:331:0: note: this is the location of the previous definition
#define UINT8_MAX (INT8_MAX * 2 + 1)