Not showing any output for led by python library


this kind of error is shown whenever i run the code

You didn’t import boltiot write from boltiot import Bolt

1 Like

how to do that
:heart:

In the starting of the program, write -
from boltiot import Bolt

from boltiot import Bolt
api_key = “”
device_id = “”
mybolt = Bolt(api_key, device_id)
response = mybolt.digitalWrite(‘0’,‘HIGH’)
print(response)

1 Like

Hi @ramesh00845,

Use the below commands to install the boltiot library.

sudo apt-get -y update
sudo apt install python3-pip
sudo pip3 install boltiot

Do let me know in case you need further assistance.