Skip to content

Instantly share code, notes, and snippets.

View walidamriou's full-sized avatar
🚩
Open for New challenges for the future of the world

Walid Amriou walidamriou

🚩
Open for New challenges for the future of the world
View GitHub Profile
@walidamriou
walidamriou / signal_input_to_output.c
Created September 23, 2021 22:38
Signal input to output
/**
*
* @file main.h
* @brief main code for signal input to output
*
* @version 1.0.0
*
* @author Walid Amriou
* @date 23/09/2021
@walidamriou
walidamriou / ESP32-WiFi-Access-Point-Arduino.cpp
Created June 28, 2021 13:51
ESP32 WiFi Access Point Arduino
#include <Arduino.h>
#include <WiFi.h>
// Replace with your network credentials
const char* ssid = "ESP32-Access-Point";
const char* password = "123456789";
// Set web server port number to 80
WiFiServer server(80);
@walidamriou
walidamriou / gist:09e83a6581ad298bf6ae57bbcffcb3d7
Last active October 26, 2021 12:20
Timer1 Arduino board by Arduino Language (CPP) output signal of period 18 ms from pin 10
#include <Arduino.h>
#define signal_generator_loop_timer_16us 57 // every 16*57 = 912 generate four signals of four pins (one step of helf step driver control)
#define timer_test_output_pin 10
void timer_init();
uint8_t timer_buffer_loop = 0;
void setup(){
{
"name": "fcc-learn-npm-package-json",
"author":"walidamriou",
"dependencies": {
"express": "^4.14.0"
},
"main": "server.js",
"scripts": {
"start": "node server.js"
},
@walidamriou
walidamriou / Fix_PlatformIO_Errno_13_Permission_denied_ttyUSB0_with_Linux.md
Created August 26, 2020 12:57
Fix PlatformIO [Errno 13] Permission denied: '/dev/ttyUSB0' with Linux

The problem: " Traceback (most recent call last): File "/home/../.platformio/penv/lib/python3.6/site-packages/serial/serialposix.py", line 265, in open self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK) PermissionError: [Errno 13] Permission denied: '/dev/ttyUSB0'

During handling of the above exception, another exception occurred:

"

@walidamriou
walidamriou / Getting_started_React_Native_in_Ubuntu_Linux.md
Last active July 20, 2020 13:21
Getting started React Native in Ubuntu/Linux

Fix "SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties" or "Failed to install the app. Make sure you have the Android development environment set up" export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools

\FF\FB\90d\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00Xing\00\00\00\00\00\00O\00\00'9\00 &+118<CFFILNQQTWYY\_beegjmpprux{{}\80\83\83\86\88\8B\8E\8E\91\94\96\99\99\9C\9F\A1\A4\A4\A7\AA\AC\AC\AF\B2\B5\B8\B8\BA\BD\C0\C3\C3\C5\C8\CB\CE\CE\D0\D3\D6\D6\D9\DC\DE\E1\E1\E4\E7\E9\EC\EC\EF\F2\F4\F7\F7\FA\FD\FF\00\00\00<LAME3.98r\AF\00\00\00\00\00\00\00\004 $\B8M\00\CC\00\00'9

\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\
@walidamriou
walidamriou / Install_and_remove_System76_Pop_GTK_Theme.md
Last active May 30, 2020 20:45
Install and remove System76 Pop GTK+ Theme

Installation:

Pop is intended to be installed through the package manager. Packages for Pop are available in PPA:

sudo add-apt-repository ppa:system76/pop
sudo apt update
sudo apt install pop-theme
It's recommended to use the pop-theme metapackage, as this will pull in all components of the look. However, individual components can be installed separately, e.g:

sudo apt install pop-gtk-theme

@walidamriou
walidamriou / Arduino code to test new boards
Created May 9, 2020 23:30
test new boards that can work with Arduino lang
#include <Arduino.h>
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("Hello");
@walidamriou
walidamriou / I2CScanner.cpp
Created April 3, 2020 00:23
I2C scanner for Arduino, ESP32, ESP8266 ...
#include <Arduino.h>
#include <Wire.h>
void setup()
{
Wire.begin();
Serial.begin(9600);
while (!Serial);
Serial.println("\nI2C Scanner");
}