Categories
Arduino UNO and Maker UNO

Maker Uno X Spec and Pin Layout

  • Use USB Micro B for power, program loading and USB communication.
  • Onboard perfboard prototyping area and a half-size breadboard.
  • Program with Arduino IDE, just choose Arduino UNO as the main board.
  • Fully compatible with Arduino UNO R3 in terms of sample code and libraries.
  • Microcontroller: ATmega328P
  • Operating Voltage: 5V
  • Digital I/O Pins: 20
  • PWM Pins: 6
  • Analog Input Pins: 6 (10-bit resolution)
  • UART: 1
  • SPI: 1
  • I2C: 1
  • Flash Memory: 32KB
  • SRAM: 2KB
  • EEPROM: 1KB
  • Clock Speed: 16MHz
  • USB To UART Chip: CH340
  • 1x Programmable Push Button (Pin D2)
  • 12x LED as I/O indicators (Pin D2 to D13)
  • 2x LED as UART TX/RX activity indicators (Pin D0 & D1)

Pin out of Maker Uno X (similar to Arduino Uno Rev3)

Arduino Uno Rev3 | Arduino Official Store

Categories
Arduino UNO and Maker UNO

Maker UNO X

Maker UNO X (use the similar original ATmega328P microcontroller by original Arduino Uno R3 board’s with added with electronic kits, LEDs, as follows build-in

  • LEDs on every digital pin
  • Piezo buzzer
  • Programmable push button
  • Powerbank-friendly to enable the portability of the projects
  • Breadboard and donut board (perfboard) are included onboard
  • Other features
  • Use USB Micro B for power, program loading and USB communication.
  • Program with Arduino IDE, just choose Arduino UNO as the main board.
  • Fully compatible with Arduino UNO R3 in terms of sample code and libraries.
  • Microcontroller: ATmega328P
  • Operating Voltage: 5V
  • Digital I/O Pins: 20
  • PWM Pins: 6
  • Analog Input Pins: 6 (10-bit resolution)
  • UART: 1
  • SPI: 1
  • I2C: 1
  • Flash Memory: 32KB
  • SRAM: 2KB
  • EEPROM: 1KB
  • Clock Speed: 16MHz
  • USB To UART Chip: CH340
  • 12x LED as I/O indicators (Pin D2 to D13)
  • 2x LED as UART TX/RX activity indicators (Pin D0 & D1)
Categories
Raspberry Pi PIco

Wokwi a browser Raspberry Pi Pico Emulator

https://wokwi.com/arduino/new?template=pi-pico

Categories
Raspberry Pi PIco

Using C/C++ with Visual Studio Code (Intel) macOS 10.14 Mojave

9.1. Building on Apple macOS (Getting Started Raspberry Pi Pico

Make sure the Homebrew package is installed.

Download the ARM development tools

https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads

Setup the ARM development tools

Git Clone the Raspberry Pi Pico SDK and Sample code

git clone -b master https://github.com/raspberrypi/pico-s…

git clone -b master https://github.com/raspberrypi/pico-e…

Test Raspberry Pi Sample Code

Resources

https://datasheets.raspberrypi.org/pico/getting-started-with-pico.pdf

https://datasheets.raspberrypi.org/pico/raspberry-pi-pico-c-sdk.pdf

Categories
My Go Tutorial

Declaring a variable (Part 2

MUST be declared before using it

Order of declaring a variable in your code, here is an example of the declared variable unrecognized by fmt.Println() statement. The GO compiler (go build) took each line (reading from top to bottom) of the source code. In this case, you have a variable name odometer use but not data type and memory address defined. The compilation has failed or IDE for GO may prompt it as a problem.

// Variable declared but return error message
// when compile (go build) 
// 
func main() {
     fmt.Println(odometer)
     var odometer int
}

// Corrected code compile without error and 
// execution of code will return a value 
func main() {
     var odometer int
     fmt.Println(odometer)
}

Categories
My Go Tutorial

Declare a variable (Part 1)

MUST declare before using it

Declaration Syntax

var variable_name type

var odometer int

Naming Rules (variable names and function names)

  • 1st letter
    • a-z (1st letter)
    • _ (underscore)
    • Unicode char
  • Style
    • CamelCase
  • Special Cases
    • public accessable by other Go packages
      • A-Z (lst letter capitalize)
  • No Go’s language syntax keywords

Note: If the above rule is not followed, IDE for Go will prompt for errors, and Go run compilation will fail.

Categories
Security

Secure Your Online Accounts With 2FA And Open Source

Categories
Love2D and Lua

Love2D Resources

Wikipedia and Documentation API

https://www.love2d.org/wiki/Main_Page

Categories
Love2D and Lua

How LOVE2D Work

LÖVE calls 3 functions. First it calls love.load(). After that it calls love.update() and love.draw(), repeatedly in that order.

So: love.load -> love.update -> love.draw -> love.update -> love.draw -> love.update, etc.

Behind the scenes, LÖVE calls these functions, and we to create them, and fill them with code. This is what we call a callback.

LÖVE is made out of modules, love.graphics, love.audio, love.filesystem. There are about 15 modules, and each module focuses on 1 thing. Everything that you draw is done with love.graphics. And anything with sound is done with love.audio.

Categories
Dart

Creating a Classes and Instantiate

class  className {
    type fieldName;
    // anonymous function
    type get {
      return
    }
}

class InputField {
     int maxLength;
     String name;
}

var field = new className();

field.name = “fieldname”;

print(field.name);