Skip to content

Fixed gpio not configured as pullup for non espressif boards. - #233

Merged
bogde merged 1 commit into
bogde:masterfrom
nschurando:master
Mar 17, 2022
Merged

bogde merged 1 commit into
bogde:masterfrom
nschurando:master

Conversation

@nschurando

Copy link
Copy Markdown

Fixes issue #232.

@vschlegel

Copy link
Copy Markdown

i just had the same issue and can confirm this worked. @bogde could you please merge this?

@bogde
bogde merged commit be5e3d2 into bogde:master Mar 17, 2022
@bogde

bogde commented Mar 17, 2022

Copy link
Copy Markdown
Owner

Done, thanks @nschurando for your contribution, thanks @ioeides for confirming.

@vschlegel

Copy link
Copy Markdown

Damn, my fault. I also changed line 83 from
pinMode(DOUT, DOUT_MODE);
to
pinMode(DOUT, INPUT_PULLUP);
in my code. This overwrites the issue as well as the change made by @nschurando

With both the Versions before and after this merge, i get the same issue.

In file included from .pio/libdeps/cubecell_board/HX711/src/HX711.cpp:10:
.pio/libdeps/cubecell_board/HX711/src/HX711.cpp: In member function 'void HX711::begin(byte, byte, byte)':
/home/val/.platformio/packages/framework-arduinoasrmicro/cores/asr650x/Arduino.h:86:27: error: 'PINMODE_DOUT_MODE' was not declared in this scope; did you mean 'PINMODE_OUTPUT'?
   86 | #define pinMode(pin,mode) PINMODE_ ## mode(pin)
      |                           ^~~~~~~~
.pio/libdeps/cubecell_board/HX711/src/HX711.cpp:83:2: note: in expansion of macro 'pinMode'
   83 |  pinMode(DOUT, DOUT_MODE);
      |  ^~~~~~~
*** [.pio/build/cubecell_board/lib1ea/HX711/HX711.cpp.o] Error 1

banoz added a commit to banoz/HX711 that referenced this pull request May 6, 2022
banoz added a commit to banoz/HX711 that referenced this pull request May 17, 2022
Merge pull request bogde#233 from nschurando/master
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

Successfully merging this pull request may close these issues.

3 participants