반응형
Raspberry Pi Pico C 프로그래밍 - 온보드 온도 센서
Raspberry Pi Pico&Pico W2024. 8. 4. 22:18Raspberry Pi Pico C 프로그래밍 - 온보드 온도 센서

Raspberry Pi Pico에서 보드에 장착된 온도 센서의 측정 결과를 터미널에 문자열로 전송하는 예제입니다. 2024. 8. 4 최초작성진행하기 전에 다음 포스트를 먼저 진행해야 합니다. Windows에 Raspberry Pi Pico C 개발 환경 만들기 https://webnautes.tistory.com/20921.다음 파일을 다운로드하여 앞에서 진행한 pico 폴더의 다음 위치에 압축을 풀어둡니다.폴더 이름을 onboard_temperature라고 이름을 바꾸었습니다. https://github.com/webnautes/nudapeu/blob/master/project1.zip  2. 다음 위치에 있는 onboard_temperature.c를 복사하여  다음 위치에 붙여넣기합니다. D:\wo..

Windows에 Raspberry Pi Pico C 개발 환경 만들기
Raspberry Pi Pico&Pico W2024. 8. 3. 23:14Windows에 Raspberry Pi Pico C 개발 환경 만들기

Windows에서 Raspberry Pi Pico에서 C 프로그래밍을 하기 위해 필요한 작업들을 정리합니다. Raspberry Pi Pico W에서도 동일하게 개발환경으로 사용가능하지만 포스트에서 테스트를 위해 다루고 있는  Blink 예제의 경우엔 LED의 핀번호가 달라서 동작하지 않습니다. Raspberry Pi pico W에서는 다음 예제들을 테스트해보세요. Raspberry Pi Pico W - TCP Server C 예제https://webnautes.tistory.com/2095 Raspberry Pi Pico W - TCP 소켓 통신으로 LCD에 문자열 출력하기https://webnautes.tistory.com/20962021. 3. 30  최초작성 2021. 4. 03  개별 프로젝트 빌..

Raspberry Pi Pico C 프로그래밍 - I2C LCD 예제
Raspberry Pi Pico&Pico W2023. 10. 19. 21:47Raspberry Pi Pico C 프로그래밍 - I2C LCD 예제

Raspberry Pi Pico에서 I2C LCD에 문자열을 출력하는 예제입니다. Raspberry Pi Pic W에서도 동일하게 동작합니다. 2023. 01. 07 - 최초작성 진행하기 전에 다음 포스트를 먼저 진행해야 합니다. Windows에 Raspberry Pi Pico C 개발 환경 만들기 https://webnautes.tistory.com/2092 0. I2C LCD와 Raspberry Pi Pico를 다음처럼 연결합니다. Raspberry Pi Pico GPIO 4 (pin 6)-> I2C LCD SDA Raspberry Pi Pico GPIO 5 (pin 7)-> I2C LCD SCL Raspberry Pi Pico 3.3V (pin 36) -> I2C LCD VCC Raspberry P..

Visual Studio 2019에서 MySQL/MariaDB C API 예제 사용하기
프로그래밍 노트/C&C++2021. 2. 8. 22:08Visual Studio 2019에서 MySQL/MariaDB C API 예제 사용하기

Visual Studio 2019에서 MySQL/MariaDB C API를 사용하는 간단한 예제를 테스트해보았습니다. 2021. 02. 08 최초작성 아래 링크에 접속하여 MariaDB Connector/C를 다운로드합니다. Oracle에서 다운로드 받으면 로그인해야 하고 번거로워서 이곳에서 다운로드 받아 사용했습니다. https://mariadb.com/downloads/#connectors OS 항목을 MS Windows (64-bit)로 변경한 후, Download를 클릭합니다. 설치하면 아래 경로에 설치됩니다. C:\Program Files\MariaDB\MariaDB Connector C 64-bit 테스트를 위해 콘솔 프로젝트를 생성했습니다. Create a new project를 선택합니다...

Raspberry Pi 3에서  Servo Motor 제어하기
Raspberry Pi/Raspberry Pi 활용2019. 6. 3. 21:02Raspberry Pi 3에서 Servo Motor 제어하기

라즈베리파이3에서 서보 모터를 제어하는 방법을 다룹니다. Python 언어와 C 언어로 다루는 방법을 설명하며 이후 웹캠과 초음파 센서를 얹어 사용할 예정입니다. 2019. 6. 3 (영상은 업로드 중입니다.) Python import RPi.GPIO as GPIO from time import sleep GPIO.setmode(GPIO.BOARD) GPIO.setup(12, GPIO.OUT) p = GPIO.PWM(12, 50) p.start(0) p.ChangeDutyCycle(3) sleep(1) p.ChangeDutyCycle(12) sleep(1) p.ChangeDutyCycle(7.5) sleep(1) while(1): val = float(raw_input("input(3~7.5~12) = ..

미분류2013. 4. 26. 04:57SQLite C example

출처 http://nano-chicken.blogspot.kr/2012_08_01_archive.html http://snortbit.blog.163.com/blog/static/189573172201331593547914/ #include #include #include #include using namespace std; int main(int argc, char** argv) { sqlite3 *conn; sqlite3_stmt *statement; ⁄⁄ SQL Statement Object int ret = 0; int cols; ⁄⁄ This routine opens a connection to an SQLite database file ⁄⁄ and returns a database connec..

반응형
image