xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Raspberry Pi 电路图模拟器 All In One

Raspberry Pi 电路图模拟器 All In One

Circuit Diagram / Circuit Graph

https://fritzing.org/learning/tutorials/building-circuit

电路原理图绘制
PCB 布线软件

https://techclass.rohm.com.cn/knowledge/deviceplus/connect/integrate-rfid-module-raspberry-pi

Fritzing

not free, build for yourself

Fritzing is an open-source hardware initiative that makes electronics accessible as a creative material for anyone.

Fritzing是一项开放源代码的硬件计划,该计划使电子产品可以作为任何人的创意材料来使用。

https://fritzing.org/

https://fritzing.org/learning/

https://github.com/fritzing

Raspberry Pi 接线模拟器

面包板模拟器

接线模拟器

Sense HAT Emulator

Sense HAT 模拟器

https://trinket.io/sense-hat

https://trinket.io/docs/python

https://www.raspberrypi.org/blog/sense-hat-emulator/

https://www.raspberrypi.org/blog/desktop-sense-hat-emulator/

from sense_hat import SenseHat
 
sense = SenseHat()
red = (255, 0, 0)
sense.show_message("How cool is this?", text_colour = red)

Sense HAT

The Sense HAT is an add-on board for Raspberry Pi, made especially for the Astro Pi mission

Sense HAT是Raspberry Pi的附加板,专为Astro Pi任务而制造

LED

#!/usr/bin/env python3

# coding: utf8

__author__ = 'xgqfrms'
__editor__ = 'vscode'
__version__ = '1.0.1'
__copyright__ = """
  Copyright (c) 2012-2050, xgqfrms; mailto:xgqfrms@xgqfrms.xyz
"""

"""
  /**
   *
   * @author xgqfrms
   * @license MIT
   * @copyright xgqfrms
   * @created 2020-08-0
   *
   * @description
   * @augments
   * @example
   * @link https://www.youtube.com/watch?v=KNsqlqBrkuY
   *
  */
"""

import RPI.GPIO as gpio
import time

gpio.setmode(gpio.BCM)
gpio.setup(17, gpio.OUT)

while True:
  gpio.output(17, gpio.HIGH)
  time.sleep(1)
  gpio.output(17, gpio.LOW)
  time.sleep(1)

"""

from RPI.GPIO import setmode, setup, output, BCM, OUT, HIGH, LOW
from time import sleep

setmode(BCM)
setup(17, OUT)

while True:
  output(17, HIGH)
  sleep(1)
  output(17, LOW)
  sleep(1)

"""


#!/usr/bin/env python3

# coding: utf8

__author__ = 'xgqfrms'
__editor__ = 'vscode'
__version__ = '1.0.1'
__copyright__ = """
  Copyright (c) 2012-2050, xgqfrms; mailto:xgqfrms@xgqfrms.xyz
"""

"""
  /**
   *
   * @author xgqfrms
   * @license MIT
   * @copyright xgqfrms
   * @created 2020-08-0
   *
   * @description
   * @augments
   * @example
   * @link https://www.youtube.com/watch?v=lyura1g0QgY
   *
  */
"""

from gpiozero import LED
from time import sleep

red = LED(12)
# Change 12 to your GPIO pin

red.on()
sleep(3)
red.off()

https://www.youtube.com/watch?v=lyura1g0QgY

chmod 777

https://zzk.cnblogs.com/my/s/blogpost-p?Keywords=chmod

https://techclass.rohm.com.cn/knowledge/deviceplus/how-tos/raspberry/how-to-run-arduino-sketches-on-raspberry-pi/3

refs

https://github.com/xgqfrms/Raspberry-Pi

https://github.com/xgqfrms/raspberrypi

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2020-08-11 11:06  xgqfrms  阅读(1489)  评论(11编辑  收藏  举报