Skip to content

Instantly share code, notes, and snippets.

@riyas-org
riyas-org / STM32F446_buggy_capture.txt
Created August 23, 2020 15:52
STM32F446_buggy_capture
No. Time Source Destination Protocol Length Info
1 0.000000 host 6.1.0 USBHUB 64 GET_STATUS Request [Port 1]
Frame 1: 64 bytes on wire (512 bits), 64 bytes captured (512 bits) on interface 0
Interface id: 0 (usbmon6)
Interface name: usbmon6
Encapsulation type: USB packets with Linux header and padding (115)
Arrival Time: Aug 23, 2020 16:17:08.502037000 CEST
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1598192228.502037000 seconds
@riyas-org
riyas-org / STM32F407_working_capture.txt
Created August 23, 2020 15:51
STM32F407_working_capture
No. Time Source Destination Protocol Length Info
1 0.000000 host 6.1.0 USBHUB 64 GET_STATUS Request [Port 1]
Frame 1: 64 bytes on wire (512 bits), 64 bytes captured (512 bits) on interface 0
Interface id: 0 (usbmon6)
Interface name: usbmon6
Encapsulation type: USB packets with Linux header and padding (115)
Arrival Time: Aug 23, 2020 17:06:08.158040000 CEST
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1598195168.158040000 seconds
/* Nokia 5100 LCD Example Code
Graphics driver and PCD8544 interface code for SparkFun's
84x48 Graphic LCD.
https://www.sparkfun.com/products/10168
by: Jim Lindblom
adapted from code by Nathan Seidle and mish-mashed with
code from the ColorLCDShield.
date: October 10, 2013
license: Beerware. Feel free to use, reuse, and modify this
/* Iambic keyer with lcd for cw practice
Courtesy SV1OBT and OZ1JHM
*/
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 9, 4, 5, 6, 7); // LCD display pins
#define TONE 400
const int colums = 16;
const int rows = 2;
//simple keypad for speed
int lcd_key = 0;
@riyas-org
riyas-org / i2cscanner.ino
Created December 7, 2016 11:25
i2c scanner
// --------------------------------------
// i2c_scanner
//
// Version 1
// This program (or code that looks like it)
// can be found in many places.
// For example on the Arduino.cc forum.
// The original author is not know.
// Version 2, Juni 2012, Using Arduino 1.0.1
// Adapted to be as simple as possible by Arduino.cc user Krodal
#Orthogonal Signal Correction for PLS models (OPLS)
#adapted from an example in the book <a href="http://www.springer.com/life+sciences/systems+biology+an+bioinfomatics/book/978-3-642-17840-5">"Chemometrics with R by Ron Wehrens"</a>
#this code requires the following packages:
need.packages<-c("pls", # to generate PLS models
"ggplot2" ) # to plot results
#I will use sample data set (glycans in humans) from a google spreadsheet which can be found here
#https://docs.google.com/spreadsheet/ccc?key=0Ap1AEMfo-fh9dHdxRkQtX08xQWdRNVB4VG5HZU9LLXc&usp=sharing