Browse Source

Adding Reame

master
commit
4aafbd210d
3 changed files with 28 additions and 0 deletions
  1. +1
    -0
      .gitignore
  2. +0
    -0
      Readme.md
  3. +27
    -0
      main.c

+ 1
- 0
.gitignore View File

@ -0,0 +1 @@
LEDc

+ 0
- 0
Readme.md View File


+ 27
- 0
main.c View File

@ -0,0 +1,27 @@
// LED application in C by
// Gerado Marx Chavez Campos
// 26/04/2021
//
//
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define LED3PATH "/sys/class/leds/beaglebone:green:usr3"
//Function prototypes
void WriteLED(char fileName[], char value[]);
void RemoveTrigger();
//main
int main(int argc, char* argvp[]){
if(argc!=2){
printf("Incorrect use...");
return 2;
}
printf("LED Application Done");
return 0;
}

Loading…
Cancel
Save