전체 글 171

Serial communication using Python (PySerial) and Arduino/AVR/PIC Micro on Linux

https://www.xanthium.in/linux-serial-port-programming-using-python-pyserial-and-arduino-avr-pic-microcontroller Serial communication using Python (PySerial) and Arduino/AVR/PIC Micro on Linux | xanthium enterprises Serial communication using Python (PySerial) and Arduino/AVR/PIC Micro on Linux A short tutorial on how to setup a serial port communication between a Linux PC/Laptop and a AVR/PIC/MS..

카테고리 없음 2023.01.27

Build your own Data Acquisition System (.csv file) using Python and Arduino

https://www.xanthium.in/python-data-acquisition-system-daq-arduino-log-to-csv-file Build your own Data Acquisition System (.csv file) using Python and Arduino | xanthium enterprises Build your own Data Acquisition System (.csv file) using Python and Arduino In this tutorial, we will build a low cost multi channel data logging system using Python and Arduino UNO board that will log and save data ..

카테고리 없음 2023.01.27

dtostrf(), sprintf()

https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=kaiserkhan21&logNo=221042305919 [아두이노] format을 가진 출력을 위한 sprintf( ), dtostrf( ) 아두이노에서 직렬통신 또는 LCD 등에 문자열을 출력할 수 있다. 이 때, format을 가진 내용을 단순히 p... blog.naver.com 아두이노에서 직렬통신 또는 LCD 등에 문자열을 출력할 수 있다. 이 때, format을 가진 내용을 단순히 print( )라는 함수만으로 구현하기는 귀찮은 면이 있다. 이 때 사용하는 함수가 sprintf( )이다. 이 함수는 아두이노를 구성하는 AVR에서 제공하는 함수이다. int sprintf( ..

Arduino 2023.01.26

C# 제네릭 (C# Generics)

C# 제네릭 (C# Generics) 일반적으로 클래스를 정의할 때, 클래스 내의 모든 데이타 타입을 지정해 주게 된다. 하지만 어떤 경우는 클래스의 거의 모든 부분이 동일한데 일부 데이타 타입만이 다른 경우가 있을 수 있다. 예를 들어, 사칙연산을 하는 클래스 A가 있다고 가정하자. 이 클래스 A에는 int 타입의 필드들이 있고, int 타입을 파라미터로 받아 계산하는 메서드들도 있다. 그러면 이 클래스 A를 double 타입의 데이타를 가지고 사용할 수 있을까? 그렇 수 없다. 왜냐하면 이미 모든 필드 및 파라미터가 int로 설정되어 있기 때문이다. 이런 경우 C#의 제네릭 타입(Generic Type)을 사용할 수 있는데, 제네릭 타입에서는 int, float, double 같은 데이타 요소 타입을..

C#/C# 고급문법 2023.01.05

C# 문자열

https://www.csharpstudy.com/CSharp/CSharp-string.aspx C# 문자열 - C# 프로그래밍 배우기 (Learn C# Programming) C# 문자열 문자열(string)은 프로그램에서 가장 많이 쓰이는 데이타 타입 중의 하나이다. C#에서 문자열(string)은 이중부호를 사용하여 표현되며, 단일 문자(char)는 단일부호를 사용하여 표현된다. C# www.csharpstudy.com 문자열(string)은 프로그램에서 가장 많이 쓰이는 데이타 타입 중의 하나이다. 문자열(string)은 이중부호를 사용하여 표현되며, 단일 문자(char)는 단일부호를 사용하여 표현된다. C#의 키워드 string은 .NET의 System.String 클래스와 동일하며, 따라서 S..

C#/C# 문법 2022.12.07