Skip to content

Instantly share code, notes, and snippets.

View DanNduati's full-sized avatar
👋
Hello!

Daniel Nduati DanNduati

👋
Hello!
View GitHub Profile

Keybase proof

I hereby claim:

  • I am dannduati on github.
  • I am danie_l (https://keybase.io/danie_l) on keybase.
  • I have a public key ASD8suRxNdVy9iy5j_jv7DzfacMnswavYw5-nGJDlWJ3PQo

To claim this, I am signing this object:

@DanNduati
DanNduati / local_build.md
Created March 4, 2022 12:27
Local build using gcc-arm

Local build using gcc-arm

It is possible to build both application firmware and Device OS locally using the gcc-arm toolchain.

Prerequisites

  • gcc-arm toolchain
  • git
  • dfu-util

Building

1. Select a source directory

2. Checkout the source

  • Navigate to the src directory above
@DanNduati
DanNduati / gist:25300ebedf9c07aaec0dc1262edce96e
Created February 5, 2018 06:39
Arduino based calculator using 4*4 keypad and a 16*2 lcd display
#include <LiquidCrystal_I2C.h>
#include <Keypad.h>
const byte ROWS = 4; // Four rows
const byte COLS = 4; // Three columns
// Define the Keymap
char keys[ROWS][COLS] = {
@DanNduati
DanNduati / gist:497525fb9a9d5e198a3c7664acaf0671
Created February 5, 2018 06:39
Arduino based calculator using 4*4 keypad and a 16*2 lcd display
#include <LiquidCrystal_I2C.h>
#include <Keypad.h>
const byte ROWS = 4; // Four rows
const byte COLS = 4; // Three columns
// Define the Keymap
char keys[ROWS][COLS] = {
@DanNduati
DanNduati / arduino_dan_security
Created February 5, 2018 06:37
Arduino based security project
#include <LiquidCrystal_I2C.h>
#include <Wire.h>
#include <Keypad.h>
#define buzzer 11
#define trigPin 9
#define echoPin 10
#if defined(ARDUINO) && ARDUINO >= 100
#define printByte(args) write(args);
#else
#define printByte(args) print(args,BYTE);