User Tools

Site Tools


arduino:dev-notes-en

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
arduino:dev-notes-en [2018/11/12 08:56] – external edit 127.0.0.1arduino:dev-notes-en [2022/11/18 13:34] (current) – removed rjversluis
Line 1: Line 1:
-====== Arduino Developer Notes ====== 
-[[:english|{{  :rocrail-logo-35.png}}]] 
-[[:develop-corner-en|Developer corner]]  
-  * [[:develop-corner-en#arduino_projects|Arduino Projects]] 
  
- \\ 
-=====Serial===== 
-==== SerialEvent==== 
-The __**[[https://www.arduino.cc/en/Reference/SerialEvent|SerialEvent]]**__ is not really usable because of its very slow reaction. It seems only be called if the UART buffer is full.\\ 
-Better is to use a function which is periodically called from the main loop which check if bytes are available.\\ 
- 
-<code C> 
-void loop() { 
-  delay(10); 
-  doSerial(); 
-} 
- 
- 
-void doSerial() { 
-  while (Serial.available()) { 
-    // get the new byte: 
-    char c = (char)Serial.read(); 
-  } 
-} 
-</code> 
- \\ 
-==== PC Connection ==== 
-After opening the serial port with a host program a wait of 2..3 seconds is needed before the UNO is ready to receive data.\\ 
- 
- \\ 
-=====macOS Crash===== 
-If the macOS crashes after plugging in the Arduino into the USB, the following update driver could help:\\ 
-  * https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver 
-//This is not an official Apple patch.//\\ 
- 
- \\ 
-=====MCP2515 Library===== 
-  * https://github.com/coryjfowler/MCP_CAN_lib 
-  * {{:arduino:mcp_can_lib.zip}} 
arduino/dev-notes-en.1542009373.txt.gz · Last modified: 2018/11/12 08:56 by 127.0.0.1