반응형
Arduino Uno2016. 8. 30. 08:00Arduino - 시리얼 통신으로 실수(double)를 전송하기

출처:http://sheepdogguides.com/arduino/aht2printfloat.htm 12345678910111213141516171819202122232425262728293031323334353637383940414243444546/*Program to provide and demonstrate a way to send floating point numbers to the serial stream.*/ double x;double y;double z; void printDouble( double val, unsigned int precision){/* prints val with number of decimal places determine by precision NOTE: precis..

반응형
image