Raspberry Pi_Kor_25.6.3 RPi.GPIO library

25.6.3 library

25.6.3.1 library 개요

이 library는 Python 개발언어에서 Raspberry Pi의 GPIO를 조정할 수 있는 class 모듈을 제공해 준다.

이 library는 실시간이거나 시간 동기화가 중요한 application에서는 부적합하다. 왜냐하면 python이 언제 garbage collect을 할지 예측할 수 없고, 실시간 처리에 적합하지 않는 Linux kernel에서 실행되기 때문이다. Linux는 multitasking O/S로서 CPU에 대해서 GPIO 처리 프로그램보다 다른 프로세서가 더 높은 우선순위를 가질 수도 있고, 그럴 경우는 GPIO 처리 프로그램이 혼란에 빠질 수도 있기 때문이다.

Raspberry Pi_Eng_25.6.3 RPi.GPIO library

25.6.3 library

25.6.3.1 Overview of Library

This library provides a class module that allows you to manipulate the GPIO of Raspberry Pi in Python development language.

This library is not suitable for the applications that are in real-time or where time-synchronization is important. Because python can not predict when garbage collect will occur and it runs in a Linux kernel that is not suitable for real-time processing. This is that because Linux is a multitasking O/S, other processors may have a higher priority than the GPIO processing program for the CPU and in that case the GPIO processing program may be confused.