Difference between revisions of "LQFP32"

From RoboWiki
Jump to: navigation, search
(Created page with "=== Exercises with LQFP32 Mini EVB === Configuration of Arduino IDE: <youtube>1t0vyJ9o7mk</youtube> Connect the device to USB port, open device manager (WIN-X, and select D...")
 
m
 
(4 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
[[Image:serial_port_device_manager.png]]
 
[[Image:serial_port_device_manager.png]]
  
1. Test serial port communication (01_serial.ino):
+
Pinout: [https://raw.githubusercontent.com/dbuezas/lgt8fx/master/docs/boards/pinouts/svg/LGT8F328P-nano.png pinout]
  
<syntaxhighlight lang="C">
 
void setup() {
 
  Serial.begin(9600);
 
}
 
  
int i = 0;
+
Supplementary material download: labels for boxes with pinouts: [[Media:pinouts.zip|pinouts.zip]]
void loop() {
 
  Serial.print("Hello ");
 
  Serial.println(i++);
 
  delay(1000);
 
}
 
</syntaxhighlight>
 
  
2. Test internal LED flashing (02_led_flash.ino):
+
[[LQFP32 - programy]]
  
<syntaxhighlight lang="C">
 
#define LED 13
 
void setup() {
 
  pinMode(LED, OUTPUT);
 
}
 
  
void loop() {
+
[[Media:diagnostic.ino|diagnostic.ino]]
  digitalWrite(LED, HIGH);
 
  delay(500);
 
  digitalWrite(LED, LOW);
 
  delay(100);
 
}
 
</syntaxhighlight>
 

Latest revision as of 16:30, 29 November 2022

Exercises with LQFP32 Mini EVB

Configuration of Arduino IDE:

Connect the device to USB port, open device manager (WIN-X, and select Device Manager), open "Ports", check which serial port has been created for the device:

Serial port device manager.png

Pinout: pinout


Supplementary material download: labels for boxes with pinouts: pinouts.zip

LQFP32 - programy


diagnostic.ino