Failed to execute file "api_esp32_touchpad.js", failed to read file "api_esp32_touchpad.js"

#1
  1. My goal is: Access inbuilt touchpad sensor of ESP32-WRROM-32
  2. My actions are: I have added
    in mos.yml
    libs:

and in int.js
load(‘api_esp32_touchpad.js’);

  1. The result I see is: failed to execute file “api_esp32_touchpad.js”, failed to read file “api_esp32_touchpad.js”
  2. My expectation & question is: Why not able to load “api_esp32_touchpad.js” ?
#2

Did you add the esp32-touchpad lib as well in mos.yml?

1 Like
#3

Thank you for your reply …

i have added these lib in my mos.yml file
libs:

If anything , i have missed please suggest me …waiting for your reply …
Thank you…

#4

Well, it seems you missed to add the lib you are trying to use:

You’ll have to add this one to the mos.ymlfile, as I wrote in my first reply.

1 Like
#5

Thanks for your reply …

now i am able to get the touch sense data by adding lib in the mos.yml

and by adding this in init.js

load(‘api_esp32_touchpad.js’);

Thank you so much …