blink.py - a little Python-program running on the ESP8266

Einfach Dinge, die nichts mit XAMPP, Apache Friends, Apache, MySQL, PHP und alle dem zu tun haben. Allerlei halt. ;)

blink.py - a little Python-program running on the ESP8266

Postby unleash_it » 14. October 2019 19:34

hi there good evening,

the topic today: blink.py - a little Python-program running on the ESP8266


i am running this code on a ESP 8266

Code: Select all


import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.OUT)
while True:
   GPIO.output(18, GPIO.HIGH)
   time.sleep(1)
   GPIO.output(18, GPIO.LOW)
   time.sleep(1)





with the following

Code: Select all

>>> import sys
>>> print ('Hello World')
Hello World
>>> os.stat('./boot.py')
(32768, 0, 0, 0, 0, 0, 230, 2, 2, 2)
>>> print ('Hello World')
Hello World
>>> print ('Hello World')
Hello World
>>> print ('Hello World')
Hello World
>>>
>>>





which outputs this


Code: Select all

>>>

Ready to download this file,please wait!
..
download ok
exec(open('blink.py').read(),globals())
program is running,do anything with stop it!1
program is running,do anything with stop it!1
program is running,do anything with stop it!1
program is running,do anything with stop it!1
program is running,do anything with stop it!1
program is running,do anything with stop it!1
program is running,do anything with stop it!1

unleash_it
 
Posts: 48
Joined: 10. December 2011 18:32
Operating System: linux opensuse 12.1

Return to Allerlei

Who is online

Users browsing this forum: No registered users and 0 guests