Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"examples/LCD_PCF8574/PCF8574/PCF8574.ino" is broken on Arduino MEGA 2560 R3 #408

Open
realRobotix opened this issue Feb 24, 2023 · 1 comment

Comments

@realRobotix
Copy link

Hardware:

  • Arduino MEGA 2560 R3
  • 20x4 I2C LCD
  • quad encoder (encA: 2, encB: 3, encBtn: 22)
  1. Problem: neu-rah/PCINT doesn't compile
    Fix: https://forum.arduino.cc/t/help-understanding-and-fixing-int-mode-type-has-not-been-declared/1080621

  2. Problem: Rotating the encoder still doesn't work, but pressing it does.
    Tried to do some simple debugging, but I have no idea how c++ works.

@cstoker2
Copy link

cstoker2 commented Jun 20, 2023

also experiencing this issue on a Leonardo.
Error messages:
`In file included from /Volumes/users/cameron/Documents/Arduino/libraries/PCINT_r-site.net/src/pcint.cpp:1:0:
/Volumes/users/cameron/Documents/Arduino/libraries/PCINT_r-site.net/src/pcint.cpp: In function 'void PCint(uint8_t)':
/Volumes/users/cameron/Documents/Arduino/libraries/PCINT_r-site.net/src/pcint.h:62:56: error: 'pcintPinMap' was not declared in this scope
#define pcintPinMapBank(slot) ((uint8_t*)((uint8_t*)pcintPinMap+((slot)<<3)))
^
/Volumes/users/cameron/Documents/Arduino/libraries/PCINT_r-site.net/src/pcint.cpp:44:24: note: in expansion of macro 'pcintPinMapBank'
const uint8_t* map=pcintPinMapBank(port);//get 8 bits pin change map
^~~~~~~~~~~~~~~
/Volumes/users/cameron/Documents/Arduino/libraries/PCINT_r-site.net/src/pcint.h:62:56: note: suggested alternative: 'pcintPinMapBank'
#define pcintPinMapBank(slot) ((uint8_t*)((uint8_t*)pcintPinMap+((slot)<<3)))
^
/Volumes/users/cameron/Documents/Arduino/libraries/PCINT_r-site.net/src/pcint.cpp:44:24: note: in expansion of macro 'pcintPinMapBank'
const uint8_t* map=pcintPinMapBank(port);//get 8 bits pin change map
^~~~~~~~~~~~~~~

exit status 1

Compilation error: exit status 1`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants