Skip to content

Instantly share code, notes, and snippets.

View pranav083's full-sized avatar
😇

Pranav Kumar pranav083

😇
View GitHub Profile
@pranav083
pranav083 / P8_11.p
Created June 19, 2019 15:14
GPIO IN MODE 6 IS not working for pin no. p8_11
.origin 0
.entrypoint start
#define GPIO0 0x44E07000
#define GPIO1 0x4804C000
#define GPIO2 0x481AC000
#define GPIO3 0x481AE000
#define GPIO_OE 0x134
@pranav083
pranav083 / PRU-GPIO-EXAMPLE1.dts
Last active June 20, 2019 23:25
pru pinmux not working
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black", "ti,beaglebone-green";
// identification
part-number = "PRU-GPIO-EXAMPLE2";
version = "00A0";
@pranav083
pranav083 / GPIO_p8_11_led3.p
Created June 11, 2019 22:09
gpio not working p8.11
.origin 0
.entrypoint START
// the number of times we blink the LED
#define NUMBER_OF_BLINKS 10
#define GPIO_BANK1 0x4804c000
#define GPIO1_LED3BIT 1<<24
#define GPIO_SETDATAOUT 0x194
#define GPIO_CLEARDATAOUT 0x190
@pranav083
pranav083 / P8_12.P
Last active June 30, 2019 14:55
INPUT AT P8_16 PIN
.origin 0
.entrypoint START
#define GPIO0 0x44E07000
#define GPIO1 0x4804C000
#define GPIO2 0x481AC000
#define GPIO3 0x481AE000
#define GPIO_OE 0x134
@pranav083
pranav083 / 74hc299_11_10.p
Last active July 2, 2019 14:45
interface of two 74hc299 in cascade with beaglebone black
.origin 0
.entrypoint start
#define GPIO0 0x44E07000
#define GPIO1 0x4804C000
#define GPIO2 0x481AC000
#define GPIO3 0x481AE000
#define GPIO_OE 0x134
#define GPIO_DATAIN 0x138
@pranav083
pranav083 / 74hc299_10_in.asm
Last active July 21, 2019 20:42
testing is due
.origin 0
.entrypoint start
#define GPIO0 0x44E07000
#define GPIO1 0x4804C000
#define GPIO2 0x481AC000
#define GPIO3 0x481AE000
#define GPIO_OE 0x134
#define GPIO_DATAIN 0x138
@pranav083
pranav083 / 74hc299_bi.asm
Created July 23, 2019 00:46
only logic here
.origin 0
.entrypoint start
#define GPIO0 0x44E07000
#define GPIO1 0x4804C000
#define GPIO2 0x481AC000
#define GPIO3 0x481AE000
#define GPIO_OE 0x134
#define GPIO_DATAIN 0x138
@pranav083
pranav083 / after implentation
Last active October 10, 2019 10:37
protoc version error
mighty@ideapad:~$ sudo find / -type f -name 'libproto*'
[sudo] password for mighty:
/home/mighty/libprotobuf-lite.a
/home/mighty/libprotoc.a
/var/lib/dpkg/info/libprotobuf10:amd64.list
/var/lib/dpkg/info/libprotobuf10:amd64.md5sums
/var/lib/dpkg/info/libprotobuf10:amd64.shlibs
/var/lib/dpkg/info/libprotobuf10:amd64.triggers
/var/lib/dpkg/info/libprotoc10:amd64.md5sums
@pranav083
pranav083 / numpy 'unit 8' no attribute
Created November 8, 2018 17:53
How to fix AttributeError: module 'numpy' has no attribute 'unit8'
#######################################
###import function
import numpy as np
import cv2
#######################################
#######################################
###read the image
img =np.zeros((400,400),np.unit8)
@pranav083
pranav083 / readme-stm32.md
Last active June 22, 2022 07:52
running stm32 ros

Running STM32 from linux e.g, stm32l476rg

  • Install stm32cubemxIDE in linux
  • Install stlink for linux driver : Link
  • Run ROS on stm32 : LINK
  • see this forum if face queue module error : Link