Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Arduino IDE demo source code for KC868-A64]--#05-PCF8575_Input_code
#2
Hello,
I have loaded the library PCF8575 by Renzo Mischianti like in the sample but the compilation abort :
C:\Users\regis\AppData\Local\Temp\f5fbfc26-b151-4eb0-8b55-51a854384440_KC868-A64-PCF8575-DI (2).zip.440\KC868-A64-PCF8575-DI\KC868-A64-PCF8575-DI\KC868-A64-PCF8575-DI.ino: In function 'void loop()':
C:\Users\regis\AppData\Local\Temp\f5fbfc26-b151-4eb0-8b55-51a854384440_KC868-A64-PCF8575-DI (2).zip.440\KC868-A64-PCF8575-DI\KC868-A64-PCF8575-DI\KC868-A64-PCF8575-DI.ino:37:38: error: cannot convert 'PCF8575:Big GrinigitalInput' to 'uint16_t' {aka 'short unsigned int'} in assignment
var_1 = pcf8575_IN1.digitalReadAll();
^
C:\Users\regis\AppData\Local\Temp\f5fbfc26-b151-4eb0-8b55-51a854384440_KC868-A64-PCF8575-DI (2).zip.440\KC868-A64-PCF8575-DI\KC868-A64-PCF8575-DI\KC868-A64-PCF8575-DI.ino:38:38: error: cannot convert 'PCF8575:Big GrinigitalInput' to 'uint16_t' {aka 'short unsigned int'} in assignment
var_2 = pcf8575_IN2.digitalReadAll();
^
C:\Users\regis\AppData\Local\Temp\f5fbfc26-b151-4eb0-8b55-51a854384440_KC868-A64-PCF8575-DI (2).zip.440\KC868-A64-PCF8575-DI\KC868-A64-PCF8575-DI\KC868-A64-PCF8575-DI.ino:39:38: error: cannot convert 'PCF8575:Big GrinigitalInput' to 'uint16_t' {aka 'short unsigned int'} in assignment
var_3 = pcf8575_IN3.digitalReadAll();
^
C:\Users\regis\AppData\Local\Temp\f5fbfc26-b151-4eb0-8b55-51a854384440_KC868-A64-PCF8575-DI (2).zip.440\KC868-A64-PCF8575-DI\KC868-A64-PCF8575-DI\KC868-A64-PCF8575-DI.ino:40:38: error: cannot convert 'PCF8575:Big GrinigitalInput' to 'uint16_t' {aka 'short unsigned int'} in assignment
var_4 = pcf8575_IN4.digitalReadAll();
^

exit status 1

Compilation error: cannot convert 'PCF8575:Big GrinigitalInput' to 'uint16_t' {aka 'short unsigned int'} in assignment

Can you help ?
Reply


Messages In This Thread
RE: [Arduino IDE demo source code for KC868-A64]--#05-PCF8575_Input_code - by Regis - 10-16-2023, 08:26 AM
Begining with ARDUINO - by Regis - 11-01-2023, 09:04 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)