FND (7 segment)
/* * FNDexample.c * * Created: 2020-12-07 오전 9:31:46 * Author : User */ #include unsigned char digit[] = {0x77, 0x41, 0x3B, 0x5B, 0x4D, 0x5E, 0x7C, 0x43, 0x7F, 0x4F}; void display_7segled(unsigned char led[], unsigned int number){ PORTB = led[number]; } int main(void) { DDRB = 0xFF; display_7segled(digit, 4); return 0; } https://kocoafab.cc/tutorial/view/351 7세그먼트-숫자 표시하기 개요 1) 7세그먼트란 무엇인가? 7세그먼..
2020. 12. 7.
코드
sample // LCD를 쉽게 제어하기 위한 라이브러리를 추가합니다. #include #include #include #include "DHT.h" #include "module.h" // 0x3F I2C 주소를 가지고 있는 16x2 LCD객체를 생성합니다.(I2C 주소는 LCD에 맞게 수정해야 합니다.) LiquidCrystal_I2C lcd(0x27, 20, 4); DHT dht(2, DHT22); Adafruit_NeoPixel strip = Adafruit_NeoPixel(8, 8, NEO_GRB + NEO_KHZ800); unsigned char rcv[8] = {0,}; unsigned int arr[6] = {0,}; //순서대로 온도, 습도, EC, 미세먼지, CO₂,조도 센서 void ..
2020. 11. 18.
voltage regulator 7805CT
Part Number : 7805CT, MC7805CT, LM7805CT Function : 1A, 5V, Voltage regulator Package : TO 220 type, D2PAK, type Manufactures : ON Semiconductor, Fairchild 7805CT voltage regulator is monolithic integrated circuits designed as fixed−voltage regulators for a wide variety of applications including local, on−card regulation. These regulators employ internal current limiting, thermal shutdown, and s..
2020. 11. 17.