Skip to content

Instantly share code, notes, and snippets.

View mithi's full-sized avatar

Mithi Sevilla mithi

View GitHub Profile
# -*- coding: utf-8 -*-
"""matplot3d_examples
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1Zy_tYU5LXxJuc44AG_4GO9-2ZfVhFMnK
"""
from mpl_toolkits.mplot3d import axes3d
import {
sin,
cos,
unit,
matrix,
multiply,
transpose,
identity,
concat,
dotMultiply,
/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
- Plotly.js
- Grid
- Base Styles
- Typography
- Links
- Buttons
- Forms
- Lists
https://github.com/EvgeniyPeshkov/syntax-highlighter
"workbench.colorTheme": "Default Light+",
"workbench.colorCustomizations": {
"[One Dark Pro]": {
"syntax.type": "#26A69A",
"syntax.scope": "#00897B",
"syntax.function": "#d400b1",
"syntax.variable": "#42A5F5",
"syntax.number": "#90A4AE",
"syntax.string": "#f0a00b",
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
#include <printf.h>
#define CE_PIN 9
#define CSN_PIN 10
RF24 radio(CE_PIN, CSN_PIN);
const byte ADDRESS[6] = "00001";
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
#include <printf.h>
#define CE_PIN 9
#define CSN_PIN 10
RF24 radio(CE_PIN, CSN_PIN);
const byte ADDRESS[6] = "00001";
/*
* Getting Started example sketch for nRF24L01+ radios
* This is a very basic example of how to send data from one node to another
* Updated: Dec 2014 by TMRh20
*/
#include <SPI.h>
#include "RF24.h"
  • Modifications
  • The Many cases of Stability
from __future__ import print_function # Make print work with python 2 & 3
print('Please wait while modules load...')
import time
import pigpio
import smbus
import subprocess
#Setup I2C
try:
bus = smbus.SMBus(1)