• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 Course – Hall effect sketch – 'hallRead' was not declared

Q&A Forum › Category: ESP32 › ESP32 Course – Hall effect sketch – 'hallRead' was not declared
0 Vote Up Vote Down
gaetan.angely asked 6 years ago

Compiling the Hall effect sketch halts on this error:
‘hallRead’ was not declared in this scope
My board is a NodeMCU-32-S and compiling the other sketches (up to Module 2 Unit 4) is OK.

5 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Hello, are you using this exact sketch? 

  • https://raw.githubusercontent.com/RuiSantosdotme/ESP32-Course/master/code/Hall_Effect_Sensor/Hall_Effect_Sensor.ino

Which board do you have selected in the Arduino IDE? I’ve just tried to compile it for NodeMCU32-S board and it works fine on my installation.

0 Vote Up Vote Down
gaetan.angely answered 6 years ago

Thank you for your answer.
It is the same sketch, with “Serial.begin(115200);” and the selected board is “NodeMCU32-S”, but something must be wrong in ~/.arduino15: I just checked on another machine, and compiling here is fine.
Sorry to have send this mail too quickly.
 

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Not sure what’s happening then, you might want to delete that installation and re-install the ESP32 add-on. It should find that function in any selected board. 

0 Vote Up Vote Down
gaetan.angely answered 6 years ago

I have re-installed ‘esp32 by Espressif Systems‘ boards definitions and it’s working now.
Thank you for your advice, I will proceed with the course 🙂

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

I’m glad it worked! I’ll mark this thread as “Resolved”.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.