[![License: CC BY-NC-SA 4.0](https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey.svg)](https://creativecommons.org/licenses/by-nc-sa/4.0/)
# Release Note
* **update 22.12.03** version 0.0.9
신규 지원: DHT 온습도 센서
신규 지원: LCD 커스텀 아이콘 1종 추가
내용: I2C 주소 스캔 버그 수정
* **update 22.10.29** version 0.0.6
내용: ultrasound(초음파 센서) 모듈 오작동 버그 해결
내용: 기타 예제 오류 수정
* **update 22.10.28** version 0.0.4
내용: driver 모듈 버그 수정
* **update 22.10.28** version 0.0.3
신규 지원: LCD 커스텀 아이콘 5종 추가
신규 지원: 피에조 부저(수동형) [**지원 부품 더보기**](#step-3-stepmaker-패키지-지원-부품)
* **update 22.10.28** version 0.0.1
신규 지원: Pico 내장 온도 센서, Pico 내장 LED [**지원 부품 더보기**](#step-3-stepmaker-패키지-지원-부품)
* **update 22.10.27** version 0.0.0
신규 지원: L298N 모터 드라이버, I2C RTC, I2C LCD, 초음파 센서 [**지원 부품 더보기**](#step-3-stepmaker-패키지-지원-부품)
<br/>
# Stepmaker 패키지는 무엇인가요?
파이썬을 잘 몰라도, 누구나 손쉽게 라즈베리파이 피코를 다룰 수 있도록 도와주는 패키지입니다.
<br/>
# Stepmaker 패키지 사용 방법
## Step 1. Thonny에서 Stepmakerkit 패키지 다운로드
**Stepmaker 패키지**는 **Rpi Pico(라즈베리파이 피코)** 와 호환됩니다.
<br/>
## Step 2. Rpi Pico에 업로드 되었는지 확인
**Rpi Pico** 내부에 **_/lib_** 폴더가 생성 되었다면, 정상적으로 업로드가 완료된것입니다.
<br/>
## Step 3. Stepmaker 패키지 지원 부품
```python
#아래 지원 목록을 확인하여 필요한 모듈만 불러오는 것을 권장합니다.
from stepmaker import *
```
**현재 지원 중**
- L298N 모터 드라이버 `Module Name: driver`
- I2C RTC `Module Name: rtc`
- I2C LCD `Module Name: lcd`
- 초음파 센서 `Module Name: ultrasound`
- Pico 내장 온도 센서 `Module Name: pico`
- Pico 내장 LED `Module Name: pico`
- 피에조 부저 (수동형) `Module Name: buzzer`
<br/>
**현재 개발 중**
- 발광 다이오드 (LED)
- 각종 스위치
- 각종 외부 온도 센서
- 인체 감지 센서 (PIR)
- 로터리 엔코더
- 피에조 부저 (스위형)
추후 더 많은 부품을 지원할 수 있도록 노력하겠습니다.
만약 추가를 원하시는 부품이 있을 경우 아래 이메일 주소로 관련 내용을 보내주세요.
<dev@takeup.cc>
<br/>
## Step 4. Stepmaker 패키지 부품별 적용 방법
* **L298N 모터 드라이버 사용하기**
현재 아래와 같은 4가지의 기능이 있습니다.
```python
#장치를 지정한 파워로 즉시 켜기
device_name.on(100) #0 ~ 100 사이로 조절 가능
#장치를 즉시 끄기
device_name.off()
#장치를 지정한 파워로 천천히 켜기 (페이드 인 효과)
device_name.slow_on(100) #0 ~ 100 사이로 조절 가능
#장치를 천천히 끄기 (페이드 아웃 효과)
device_name.slow_off()
```
<br/>
이를 응용한 예제 코드는 아래와 같습니다.
자세한 사용 방법은 **[예제]** 를 참고해주세요.
```python
#[예제 1] 장치를 지정한 파워로 즉시 켜기
from stepmaker import driver
device_name = driver.Pin(11, 12, 13) #In1, In2, PWM1
device_name.on(100) #0 ~ 100 사이로 조절 가능
```
```python
#[예제 2] 장치를 즉시 끄기
from stepmaker import driver
device_name = driver.Pin(11, 12, 13) #In1, In2, PWM1
device_name.off()
```
```python
#[예제 3] 장치를 지정한 파워로 천천히 켜기 (페이드 인 효과)
from stepmaker import driver
device_name = driver.Pin(11, 12, 13) #In1, In2, PWM1
device_name.slow_on(100) #0 ~ 100 사이로 조절 가능
```
```python
#[예제 4] 장치를 천천히 끄기 (페이드 아웃 효과)
from stepmaker import driver
device_name = driver.Pin(11, 12, 13) #In1, In2, PWM1
device_name.slow_off()
```
<br/>
* **I2C 주소 찾기**
```python
#[예제 1] I2C 주소를 찾아 터미널에 출력하기
from stepmaker import addr
i2c_num = 0
sda = 16
scl = 17
addr = addr.Find(i2c_num, sda, scl) #i2c번호, sda, scl
print(addr)
```
<br/>
* **I2C LCD 사용하기**
```python
#[기능] 자주 사용하는 명령어
device_name.clear() #LCD 초기화
device_name.move_to(0, 0) #LCD 커서 이동
device_name.putstr("text") #LCD 텍스트 출력
device_name.backlight_on() #LCD 백라이트 켜기
device_name.backlight_off() #LCD 백라이트 끄기
#v0.0.3 업데이트 사항
#커스텀 아이콘 5종 추가
#temp_icon, humi_icon, celsius_icon, fan_icon, lamp_icon, clock_icon, waterLevel_icon
#자세한 사용 방법은 예제를 참고해주세요
device_name.putstr(device_name.~~~_icon())
```
```python
#[예제 1] LCD에 글자(hello) 출력하기
from stepmaker import lcd, addr
lcd_i2c_num = 0
lcd_sda = 16
lcd_scl = 17
lcd_addr = addr.Find(lcd_i2c_num, lcd_sda, lcd_scl) #i2c번호, sda, scl
lcd = lcd.I2cPin(lcd_i2c_num, lcd_addr, lcd_sda, lcd_scl) #i2c번호, i2c주소, sda, scl
lcd.move_to(0,0)
lcd.putstr("hello")
```
```python
#[예제 2] LCD에 "hello"출력 후 5초 뒤에 "world"출력하기
from stepmaker import lcd, addr
import utime
lcd_i2c_num = 0
lcd_sda = 16
lcd_scl = 17
lcd_addr = addr.Find(lcd_i2c_num, lcd_sda, lcd_scl) #i2c번호, sda, scl
lcd = lcd.I2cPin(lcd_i2c_num, lcd_addr, lcd_sda, lcd_scl) #i2c번호, i2c주소, sda, scl
lcd.move_to(0,0)
lcd.putstr("hello")
utime.sleep(5)
lcd.clear()
lcd.putstr("world")
```
```python
#[예제 3] LCD에 커스텀 문자 출력하기
from stepmaker import lcd, addr
import utime
lcd_i2c_num = 0
lcd_sda = 16
lcd_scl = 17
lcd_addr = addr.Find(lcd_i2c_num, lcd_sda, lcd_scl) #i2c번호, sda, scl
lcd = lcd.I2cPin(lcd_i2c_num, lcd_addr, lcd_sda, lcd_scl) #i2c번호, i2c주소, sda, scl
lcd.move_to(0,0)
lcd.putstr("Custom Icon" + lcd.temp_icon())
```
<br/>
* **I2C RTC 사용하기**
```python
#[예제 1] RTC 연결하여 현재 시각 설정하기
from stepmaker import rtc, addr
rtc_i2c_num = 1
rtc_sda = 14
rtc_scl = 15
rtc_addr = addr.Find(rtc_i2c_num, rtc_sda, rtc_scl) #i2c번호, sda, scl
rtc = rtc.I2cPin(rtc_i2c_num, rtc_addr, rtc_sda, rtc_scl) #i2c번호, i2c주소, sda, scl
rtc.set()
```
```python
#[예제 2] RTC 현재 시각 불러와 터미널에 출력하기
from stepmaker import rtc, addr
rtc_i2c_num = 1
rtc_sda = 14
rtc_scl = 15
rtc_addr = addr.Find(rtc_i2c_num, rtc_sda, rtc_scl) #i2c번호, sda, scl
rtc = rtc.I2cPin(rtc_i2c_num, rtc_addr, rtc_sda, rtc_scl) #i2c번호, i2c주소, sda, scl
print(rtc.datetime())
```
<br/>
* **초음파 센서 사용하기**
```python
#[에제 1] 초음파 센서로 측정한 거리를 터미널에 5초 간격으로 터미널에 출력하기
from stepmaker import ultrasound
import utime
ultrasound = ultrasound.Pin(echo, trig) #echo, trig
while True:
print(ultrasound.measure())
utime.sleep(5)
```
<br/>
* **Pico 내장 온도 센서 사용하기**
```python
#[예제 1] Pico 내장 온도 센서로 측정한 값을 1초 간격으로 터미널에 출력하기
from stepmaker import pico
import utime
built_in_temp = pico.Temp()
while True:
print(built_in_temp.measure())
utime.sleep(1)
```
<br/>
* **Pico 내장 LED 사용하기**
```python
#[예제 1] Pico 내장 LED 켜기
from stepmaker import pico
built_in_led = pico.Led()
built_in_led.on()
```
```python
#[예제 2] Pico 내장 LED 끄기
from stepmaker import pico
built_in_led = pico.Led()
built_in_led.off()
```
```python
#[예제 3] Pico 내장 LED 1초 간격으로 10번 점멸하기
from stepmaker import pico
import utime
built_in_led = pico.Led()
for i in range(10):
built_in_led.on()
utime.sleep(1)
built_in_led.off()
utime.sleep(1)
```
<br/>
* **페에조 부저 (수동형) 사용하기**
```python
#[예제 1] 부저를 2초간 켰다가 끄기
from stepmaker import buzzer
buzzer = buzzer.Pin(28)
buzzer.beep(2000, 100, 2) #비트, 음량(0 ~ 100), 지속 시간
```
<br/>
* **DHT 온습도 센서 사용하기**
```python
#[예제 1] DHT 온습도 센서로 측정한 값을 1초 간격으로 터미널에 출력하기
from stepmaker import dht
import utime
signal = 15
dht11 = dht.Pin(signal)
while True:
print(dht11.temp)
print(dht11.humi)
utime.sleep(1)
```
Raw data
{
"_id": null,
"home_page": "",
"name": "micropython-stepmaker",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "stepmaker,step,maker,micropython",
"author": "HwangJungeon",
"author_email": "hje@takeup.cc",
"download_url": "https://files.pythonhosted.org/packages/c4/76/5f979e645347f45bfddc91dc6fcbb378fc9d16f93fa38b1ebad93d04b72a/micropython-stepmaker-0.0.9.tar.gz",
"platform": null,
"description": "[![License: CC BY-NC-SA 4.0](https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey.svg)](https://creativecommons.org/licenses/by-nc-sa/4.0/)\n# Release Note\n* **update 22.12.03** version 0.0.9 \n\uc2e0\uaddc \uc9c0\uc6d0: DHT \uc628\uc2b5\ub3c4 \uc13c\uc11c \n\uc2e0\uaddc \uc9c0\uc6d0: LCD \ucee4\uc2a4\ud140 \uc544\uc774\ucf58 1\uc885 \ucd94\uac00 \n\ub0b4\uc6a9: I2C \uc8fc\uc18c \uc2a4\uce94 \ubc84\uadf8 \uc218\uc815\n\n* **update 22.10.29** version 0.0.6 \n\ub0b4\uc6a9: ultrasound(\ucd08\uc74c\ud30c \uc13c\uc11c) \ubaa8\ub4c8 \uc624\uc791\ub3d9 \ubc84\uadf8 \ud574\uacb0 \n\ub0b4\uc6a9: \uae30\ud0c0 \uc608\uc81c \uc624\ub958 \uc218\uc815\n\n* **update 22.10.28** version 0.0.4 \n\ub0b4\uc6a9: driver \ubaa8\ub4c8 \ubc84\uadf8 \uc218\uc815 \n\n* **update 22.10.28** version 0.0.3 \n\uc2e0\uaddc \uc9c0\uc6d0: LCD \ucee4\uc2a4\ud140 \uc544\uc774\ucf58 5\uc885 \ucd94\uac00 \n\uc2e0\uaddc \uc9c0\uc6d0: \ud53c\uc5d0\uc870 \ubd80\uc800(\uc218\ub3d9\ud615) [**\uc9c0\uc6d0 \ubd80\ud488 \ub354\ubcf4\uae30**](#step-3-stepmaker-\ud328\ud0a4\uc9c0-\uc9c0\uc6d0-\ubd80\ud488)\n\n* **update 22.10.28** version 0.0.1 \n\uc2e0\uaddc \uc9c0\uc6d0: Pico \ub0b4\uc7a5 \uc628\ub3c4 \uc13c\uc11c, Pico \ub0b4\uc7a5 LED [**\uc9c0\uc6d0 \ubd80\ud488 \ub354\ubcf4\uae30**](#step-3-stepmaker-\ud328\ud0a4\uc9c0-\uc9c0\uc6d0-\ubd80\ud488)\n\n* **update 22.10.27** version 0.0.0 \n\uc2e0\uaddc \uc9c0\uc6d0: L298N \ubaa8\ud130 \ub4dc\ub77c\uc774\ubc84, I2C RTC, I2C LCD, \ucd08\uc74c\ud30c \uc13c\uc11c [**\uc9c0\uc6d0 \ubd80\ud488 \ub354\ubcf4\uae30**](#step-3-stepmaker-\ud328\ud0a4\uc9c0-\uc9c0\uc6d0-\ubd80\ud488)\n\n<br/>\n\n# Stepmaker \ud328\ud0a4\uc9c0\ub294 \ubb34\uc5c7\uc778\uac00\uc694?\n\ud30c\uc774\uc36c\uc744 \uc798 \ubab0\ub77c\ub3c4, \ub204\uad6c\ub098 \uc190\uc27d\uac8c \ub77c\uc988\ubca0\ub9ac\ud30c\uc774 \ud53c\ucf54\ub97c \ub2e4\ub8f0 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc8fc\ub294 \ud328\ud0a4\uc9c0\uc785\ub2c8\ub2e4.\n\n<br/>\n\n# Stepmaker \ud328\ud0a4\uc9c0 \uc0ac\uc6a9 \ubc29\ubc95\n## Step 1. Thonny\uc5d0\uc11c Stepmakerkit \ud328\ud0a4\uc9c0 \ub2e4\uc6b4\ub85c\ub4dc \n**Stepmaker \ud328\ud0a4\uc9c0**\ub294 **Rpi Pico(\ub77c\uc988\ubca0\ub9ac\ud30c\uc774 \ud53c\ucf54)** \uc640 \ud638\ud658\ub429\ub2c8\ub2e4. \n\n<br/>\n\n## Step 2. Rpi Pico\uc5d0 \uc5c5\ub85c\ub4dc \ub418\uc5c8\ub294\uc9c0 \ud655\uc778\n**Rpi Pico** \ub0b4\ubd80\uc5d0 **_/lib_** \ud3f4\ub354\uac00 \uc0dd\uc131 \ub418\uc5c8\ub2e4\uba74, \uc815\uc0c1\uc801\uc73c\ub85c \uc5c5\ub85c\ub4dc\uac00 \uc644\ub8cc\ub41c\uac83\uc785\ub2c8\ub2e4.\n\n<br/>\n\n## Step 3. Stepmaker \ud328\ud0a4\uc9c0 \uc9c0\uc6d0 \ubd80\ud488\n```python\n#\uc544\ub798 \uc9c0\uc6d0 \ubaa9\ub85d\uc744 \ud655\uc778\ud558\uc5ec \ud544\uc694\ud55c \ubaa8\ub4c8\ub9cc \ubd88\ub7ec\uc624\ub294 \uac83\uc744 \uad8c\uc7a5\ud569\ub2c8\ub2e4.\nfrom stepmaker import *\n```\n**\ud604\uc7ac \uc9c0\uc6d0 \uc911**\n- L298N \ubaa8\ud130 \ub4dc\ub77c\uc774\ubc84 `Module Name: driver`\n- I2C RTC `Module Name: rtc`\n- I2C LCD `Module Name: lcd`\n- \ucd08\uc74c\ud30c \uc13c\uc11c `Module Name: ultrasound`\n- Pico \ub0b4\uc7a5 \uc628\ub3c4 \uc13c\uc11c `Module Name: pico`\n- Pico \ub0b4\uc7a5 LED `Module Name: pico`\n- \ud53c\uc5d0\uc870 \ubd80\uc800 (\uc218\ub3d9\ud615) `Module Name: buzzer`\n\n<br/>\n\n**\ud604\uc7ac \uac1c\ubc1c \uc911**\n- \ubc1c\uad11 \ub2e4\uc774\uc624\ub4dc (LED)\n- \uac01\uc885 \uc2a4\uc704\uce58\n- \uac01\uc885 \uc678\ubd80 \uc628\ub3c4 \uc13c\uc11c\n- \uc778\uccb4 \uac10\uc9c0 \uc13c\uc11c (PIR)\n- \ub85c\ud130\ub9ac \uc5d4\ucf54\ub354\n- \ud53c\uc5d0\uc870 \ubd80\uc800 (\uc2a4\uc704\ud615)\n\n\ucd94\ud6c4 \ub354 \ub9ce\uc740 \ubd80\ud488\uc744 \uc9c0\uc6d0\ud560 \uc218 \uc788\ub3c4\ub85d \ub178\ub825\ud558\uaca0\uc2b5\ub2c8\ub2e4. \n\ub9cc\uc57d \ucd94\uac00\ub97c \uc6d0\ud558\uc2dc\ub294 \ubd80\ud488\uc774 \uc788\uc744 \uacbd\uc6b0 \uc544\ub798 \uc774\uba54\uc77c \uc8fc\uc18c\ub85c \uad00\ub828 \ub0b4\uc6a9\uc744 \ubcf4\ub0b4\uc8fc\uc138\uc694. \n<dev@takeup.cc>\n\n<br/>\n\n## Step 4. Stepmaker \ud328\ud0a4\uc9c0 \ubd80\ud488\ubcc4 \uc801\uc6a9 \ubc29\ubc95\n* **L298N \ubaa8\ud130 \ub4dc\ub77c\uc774\ubc84 \uc0ac\uc6a9\ud558\uae30** \n\ud604\uc7ac \uc544\ub798\uc640 \uac19\uc740 4\uac00\uc9c0\uc758 \uae30\ub2a5\uc774 \uc788\uc2b5\ub2c8\ub2e4.\n```python\n#\uc7a5\uce58\ub97c \uc9c0\uc815\ud55c \ud30c\uc6cc\ub85c \uc989\uc2dc \ucf1c\uae30\ndevice_name.on(100) #0 ~ 100 \uc0ac\uc774\ub85c \uc870\uc808 \uac00\ub2a5\n\n#\uc7a5\uce58\ub97c \uc989\uc2dc \ub044\uae30\ndevice_name.off()\n\n#\uc7a5\uce58\ub97c \uc9c0\uc815\ud55c \ud30c\uc6cc\ub85c \ucc9c\ucc9c\ud788 \ucf1c\uae30 (\ud398\uc774\ub4dc \uc778 \ud6a8\uacfc)\ndevice_name.slow_on(100) #0 ~ 100 \uc0ac\uc774\ub85c \uc870\uc808 \uac00\ub2a5\n\n#\uc7a5\uce58\ub97c \ucc9c\ucc9c\ud788 \ub044\uae30 (\ud398\uc774\ub4dc \uc544\uc6c3 \ud6a8\uacfc)\ndevice_name.slow_off()\n``` \n<br/>\n\n\uc774\ub97c \uc751\uc6a9\ud55c \uc608\uc81c \ucf54\ub4dc\ub294 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4. \n\uc790\uc138\ud55c \uc0ac\uc6a9 \ubc29\ubc95\uc740 **[\uc608\uc81c]** \ub97c \ucc38\uace0\ud574\uc8fc\uc138\uc694. \n\n```python\n#[\uc608\uc81c 1] \uc7a5\uce58\ub97c \uc9c0\uc815\ud55c \ud30c\uc6cc\ub85c \uc989\uc2dc \ucf1c\uae30\nfrom stepmaker import driver\n\ndevice_name = driver.Pin(11, 12, 13) #In1, In2, PWM1\ndevice_name.on(100) #0 ~ 100 \uc0ac\uc774\ub85c \uc870\uc808 \uac00\ub2a5\n```\n\n```python\n#[\uc608\uc81c 2] \uc7a5\uce58\ub97c \uc989\uc2dc \ub044\uae30\nfrom stepmaker import driver\n\ndevice_name = driver.Pin(11, 12, 13) #In1, In2, PWM1\ndevice_name.off()\n```\n\n```python\n#[\uc608\uc81c 3] \uc7a5\uce58\ub97c \uc9c0\uc815\ud55c \ud30c\uc6cc\ub85c \ucc9c\ucc9c\ud788 \ucf1c\uae30 (\ud398\uc774\ub4dc \uc778 \ud6a8\uacfc)\nfrom stepmaker import driver\n\ndevice_name = driver.Pin(11, 12, 13) #In1, In2, PWM1\ndevice_name.slow_on(100) #0 ~ 100 \uc0ac\uc774\ub85c \uc870\uc808 \uac00\ub2a5\n```\n\n```python\n#[\uc608\uc81c 4] \uc7a5\uce58\ub97c \ucc9c\ucc9c\ud788 \ub044\uae30 (\ud398\uc774\ub4dc \uc544\uc6c3 \ud6a8\uacfc)\nfrom stepmaker import driver\n\ndevice_name = driver.Pin(11, 12, 13) #In1, In2, PWM1\ndevice_name.slow_off()\n```\n\n<br/>\n\n* **I2C \uc8fc\uc18c \ucc3e\uae30**\n```python\n#[\uc608\uc81c 1] I2C \uc8fc\uc18c\ub97c \ucc3e\uc544 \ud130\ubbf8\ub110\uc5d0 \ucd9c\ub825\ud558\uae30\nfrom stepmaker import addr\n\ni2c_num = 0\nsda = 16\nscl = 17\n\naddr = addr.Find(i2c_num, sda, scl) #i2c\ubc88\ud638, sda, scl\nprint(addr)\n```\n\n<br/>\n\n* **I2C LCD \uc0ac\uc6a9\ud558\uae30**\n```python\n#[\uae30\ub2a5] \uc790\uc8fc \uc0ac\uc6a9\ud558\ub294 \uba85\ub839\uc5b4\ndevice_name.clear() #LCD \ucd08\uae30\ud654\ndevice_name.move_to(0, 0) #LCD \ucee4\uc11c \uc774\ub3d9\ndevice_name.putstr(\"text\") #LCD \ud14d\uc2a4\ud2b8 \ucd9c\ub825\ndevice_name.backlight_on() #LCD \ubc31\ub77c\uc774\ud2b8 \ucf1c\uae30\ndevice_name.backlight_off() #LCD \ubc31\ub77c\uc774\ud2b8 \ub044\uae30\n\n#v0.0.3 \uc5c5\ub370\uc774\ud2b8 \uc0ac\ud56d\n#\ucee4\uc2a4\ud140 \uc544\uc774\ucf58 5\uc885 \ucd94\uac00\n#temp_icon, humi_icon, celsius_icon, fan_icon, lamp_icon, clock_icon, waterLevel_icon\n\n#\uc790\uc138\ud55c \uc0ac\uc6a9 \ubc29\ubc95\uc740 \uc608\uc81c\ub97c \ucc38\uace0\ud574\uc8fc\uc138\uc694\ndevice_name.putstr(device_name.~~~_icon())\n```\n\n```python\n#[\uc608\uc81c 1] LCD\uc5d0 \uae00\uc790(hello) \ucd9c\ub825\ud558\uae30\nfrom stepmaker import lcd, addr\n\nlcd_i2c_num = 0\nlcd_sda = 16\nlcd_scl = 17\n\nlcd_addr = addr.Find(lcd_i2c_num, lcd_sda, lcd_scl) #i2c\ubc88\ud638, sda, scl\nlcd = lcd.I2cPin(lcd_i2c_num, lcd_addr, lcd_sda, lcd_scl) #i2c\ubc88\ud638, i2c\uc8fc\uc18c, sda, scl\n\nlcd.move_to(0,0)\nlcd.putstr(\"hello\")\n```\n\n```python\n#[\uc608\uc81c 2] LCD\uc5d0 \"hello\"\ucd9c\ub825 \ud6c4 5\ucd08 \ub4a4\uc5d0 \"world\"\ucd9c\ub825\ud558\uae30\nfrom stepmaker import lcd, addr\nimport utime\n\nlcd_i2c_num = 0\nlcd_sda = 16\nlcd_scl = 17\n\nlcd_addr = addr.Find(lcd_i2c_num, lcd_sda, lcd_scl) #i2c\ubc88\ud638, sda, scl\nlcd = lcd.I2cPin(lcd_i2c_num, lcd_addr, lcd_sda, lcd_scl) #i2c\ubc88\ud638, i2c\uc8fc\uc18c, sda, scl\n\nlcd.move_to(0,0)\nlcd.putstr(\"hello\")\nutime.sleep(5)\nlcd.clear()\nlcd.putstr(\"world\")\n```\n\n```python\n#[\uc608\uc81c 3] LCD\uc5d0 \ucee4\uc2a4\ud140 \ubb38\uc790 \ucd9c\ub825\ud558\uae30\nfrom stepmaker import lcd, addr\nimport utime\n\nlcd_i2c_num = 0\nlcd_sda = 16\nlcd_scl = 17\n\nlcd_addr = addr.Find(lcd_i2c_num, lcd_sda, lcd_scl) #i2c\ubc88\ud638, sda, scl\nlcd = lcd.I2cPin(lcd_i2c_num, lcd_addr, lcd_sda, lcd_scl) #i2c\ubc88\ud638, i2c\uc8fc\uc18c, sda, scl\n\nlcd.move_to(0,0)\nlcd.putstr(\"Custom Icon\" + lcd.temp_icon())\n```\n\n<br/>\n\n* **I2C RTC \uc0ac\uc6a9\ud558\uae30**\n```python\n#[\uc608\uc81c 1] RTC \uc5f0\uacb0\ud558\uc5ec \ud604\uc7ac \uc2dc\uac01 \uc124\uc815\ud558\uae30\nfrom stepmaker import rtc, addr\n\nrtc_i2c_num = 1\nrtc_sda = 14\nrtc_scl = 15\n\nrtc_addr = addr.Find(rtc_i2c_num, rtc_sda, rtc_scl) #i2c\ubc88\ud638, sda, scl\nrtc = rtc.I2cPin(rtc_i2c_num, rtc_addr, rtc_sda, rtc_scl) #i2c\ubc88\ud638, i2c\uc8fc\uc18c, sda, scl\n\nrtc.set()\n```\n\n```python\n#[\uc608\uc81c 2] RTC \ud604\uc7ac \uc2dc\uac01 \ubd88\ub7ec\uc640 \ud130\ubbf8\ub110\uc5d0 \ucd9c\ub825\ud558\uae30\nfrom stepmaker import rtc, addr\n\nrtc_i2c_num = 1\nrtc_sda = 14\nrtc_scl = 15\n\nrtc_addr = addr.Find(rtc_i2c_num, rtc_sda, rtc_scl) #i2c\ubc88\ud638, sda, scl\nrtc = rtc.I2cPin(rtc_i2c_num, rtc_addr, rtc_sda, rtc_scl) #i2c\ubc88\ud638, i2c\uc8fc\uc18c, sda, scl\n\nprint(rtc.datetime())\n```\n<br/>\n\n* **\ucd08\uc74c\ud30c \uc13c\uc11c \uc0ac\uc6a9\ud558\uae30**\n```python\n#[\uc5d0\uc81c 1] \ucd08\uc74c\ud30c \uc13c\uc11c\ub85c \uce21\uc815\ud55c \uac70\ub9ac\ub97c \ud130\ubbf8\ub110\uc5d0 5\ucd08 \uac04\uaca9\uc73c\ub85c \ud130\ubbf8\ub110\uc5d0 \ucd9c\ub825\ud558\uae30\nfrom stepmaker import ultrasound\nimport utime\n\nultrasound = ultrasound.Pin(echo, trig) #echo, trig\n\nwhile True:\n print(ultrasound.measure())\n utime.sleep(5)\n```\n\n<br/>\n\n* **Pico \ub0b4\uc7a5 \uc628\ub3c4 \uc13c\uc11c \uc0ac\uc6a9\ud558\uae30**\n```python\n#[\uc608\uc81c 1] Pico \ub0b4\uc7a5 \uc628\ub3c4 \uc13c\uc11c\ub85c \uce21\uc815\ud55c \uac12\uc744 1\ucd08 \uac04\uaca9\uc73c\ub85c \ud130\ubbf8\ub110\uc5d0 \ucd9c\ub825\ud558\uae30\nfrom stepmaker import pico\nimport utime\n\nbuilt_in_temp = pico.Temp()\n\nwhile True:\n print(built_in_temp.measure())\n utime.sleep(1)\n\n```\n\n<br/>\n\n* **Pico \ub0b4\uc7a5 LED \uc0ac\uc6a9\ud558\uae30**\n```python\n#[\uc608\uc81c 1] Pico \ub0b4\uc7a5 LED \ucf1c\uae30\nfrom stepmaker import pico\n\nbuilt_in_led = pico.Led()\nbuilt_in_led.on()\n```\n\n```python\n#[\uc608\uc81c 2] Pico \ub0b4\uc7a5 LED \ub044\uae30\nfrom stepmaker import pico\n\nbuilt_in_led = pico.Led()\nbuilt_in_led.off()\n```\n\n```python\n#[\uc608\uc81c 3] Pico \ub0b4\uc7a5 LED 1\ucd08 \uac04\uaca9\uc73c\ub85c 10\ubc88 \uc810\uba78\ud558\uae30\nfrom stepmaker import pico\nimport utime\n\nbuilt_in_led = pico.Led()\n\nfor i in range(10):\n built_in_led.on()\n utime.sleep(1)\n built_in_led.off()\n utime.sleep(1)\n```\n\n<br/>\n\n* **\ud398\uc5d0\uc870 \ubd80\uc800 (\uc218\ub3d9\ud615) \uc0ac\uc6a9\ud558\uae30**\n```python\n#[\uc608\uc81c 1] \ubd80\uc800\ub97c 2\ucd08\uac04 \ucf30\ub2e4\uac00 \ub044\uae30\nfrom stepmaker import buzzer\n\nbuzzer = buzzer.Pin(28)\nbuzzer.beep(2000, 100, 2) #\ube44\ud2b8, \uc74c\ub7c9(0 ~ 100), \uc9c0\uc18d \uc2dc\uac04 \n```\n\n<br/>\n\n* **DHT \uc628\uc2b5\ub3c4 \uc13c\uc11c \uc0ac\uc6a9\ud558\uae30**\n```python\n#[\uc608\uc81c 1] DHT \uc628\uc2b5\ub3c4 \uc13c\uc11c\ub85c \uce21\uc815\ud55c \uac12\uc744 1\ucd08 \uac04\uaca9\uc73c\ub85c \ud130\ubbf8\ub110\uc5d0 \ucd9c\ub825\ud558\uae30\nfrom stepmaker import dht\nimport utime\n\nsignal = 15\ndht11 = dht.Pin(signal)\n\nwhile True:\n print(dht11.temp)\n print(dht11.humi)\n utime.sleep(1)\n```\n\n",
"bugtrack_url": null,
"license": "CC BY-NC-SA 4.0",
"summary": "Stepmaker Package For Stepmaker Kit Users and Rpi Pico Users.",
"version": "0.0.9",
"split_keywords": [
"stepmaker",
"step",
"maker",
"micropython"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "cfc376d41ede4dca4d5bce68c4ddc7a4",
"sha256": "66c5e2cf4154e14e88862fb8b11e1abecaba3d5021652e2d3c72dc8cc33ce1a6"
},
"downloads": -1,
"filename": "micropython_stepmaker-0.0.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cfc376d41ede4dca4d5bce68c4ddc7a4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 11661,
"upload_time": "2022-12-03T01:13:49",
"upload_time_iso_8601": "2022-12-03T01:13:49.983611Z",
"url": "https://files.pythonhosted.org/packages/2c/a5/f38a75d97fdc2ec525086466732d8da01b706e9e98f3f733c05a1df130ac/micropython_stepmaker-0.0.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "de012012cbb1408766b27736441a34af",
"sha256": "dfd9e1d1f112871ba33d3ce8d9f64abe4d5f17783508a4eea206d7aee452f4f7"
},
"downloads": -1,
"filename": "micropython-stepmaker-0.0.9.tar.gz",
"has_sig": false,
"md5_digest": "de012012cbb1408766b27736441a34af",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10791,
"upload_time": "2022-12-03T01:13:52",
"upload_time_iso_8601": "2022-12-03T01:13:52.250934Z",
"url": "https://files.pythonhosted.org/packages/c4/76/5f979e645347f45bfddc91dc6fcbb378fc9d16f93fa38b1ebad93d04b72a/micropython-stepmaker-0.0.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-03 01:13:52",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "micropython-stepmaker"
}