Skip to content
Extraits de code Groupes Projets
Valider ff226a6c rédigé par Diego de Bernard de Fauconval's avatar Diego de Bernard de Fauconval
Parcourir les fichiers

changements

parent b721958e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -9,11 +9,13 @@ motor : compile_motor
# compilations
compile_switch :
gcc -o switch switch.c -lwiringPi
g++ -o switch switch.cpp -lwiringPi
compile_motor :
gcc -o motor motor.c -lwiringPi
.PHONY : clean
clean :
rm *.o
\ No newline at end of file
rm -rf switch
rm -rf motor
\ No newline at end of file
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: ['https://trakteer.id/ikoo', 'https://www.paypal.com/paypalme/haialipp'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: bug, help wanted, question
assignees: zoelabbb
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.
# Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
## Our Standards
Examples of behavior that contributes to a positive environment for our
community include:
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community
Examples of unacceptable behavior include:
* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.
Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.
## Scope
This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
zoelabbb@gmail.com.
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series
of actions.
**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within
the community.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
MIT License
Copyright (c) 2022 zoelabbb
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
.PHONY: install
install: conio.h
@test -f /usr/include/conio.h \
&& printf "/usr/include/conio.h already exists\n" \
|| true
@test -w /usr/include/ \
&& cp conio.h /usr/include/conio.h \
|| printf "Please run with elevated privileges\n" \
# Library <conio.h> For Linux
## What is #include <conio.h>
If you see at the top of some C/C++ code, 90% of the time you'll see the line `#include <conio.h>`.
We're including the file `<conio.h>` into our main program. The `<conio.h>` header file contains certain library functions that peform input and output operation.
`#include <conio.h>` is a header file, `conio` stands for console-input-output and (.h) is basically header file extension.
It contains some functions and methods for formatting the output and getting input in the console.
The error will be shown like below :
![conio h fatal error](https://github.com/zoelabbb/conio.h/blob/master/src/img/fatalerror.png)
# List Function <conio.h>
cprintf
cscanf
gotoxy
clrscr
textcolor
textbackground
wherex
wherey
getch
getche
ungetch
kbhit
putch
putchar
cputs
clreol
insline (not implemented)
delline (not implemented)
cgets (not implemented)
getpass (not implemented)
gettext (not implemented)
_cprintf
_cscanf
_cputs
_getche
_kbhit
_putch
_ungetch
Some of it's functions which are often used :
- kbhit - Determines if a keyboard key was pressed.
- gcgets - Reads a string directly from the console.
- cscanf - Reads formatted values directly from the console.
- putch - Writes a character directly to the console.
- cputs - Writes a string directly to the console.
- cprintf - Formats values and writes them directly to the console.
- clrscr - Clears the screen.
- getch - Get char entry from the console
# How To Install Library #include <conio.h>
This is a library `conio.h` for linux. Just copy file and paste file `conio.h` on `/usr/include/` but don't forget before you want copy paste on `/usr/include/` you must open folder as `ADMINISTRATOR` first !!
### Step 1 :
- Open your terminal can as root
- sudo apt-get update
- sudo apt-get upgrade
- sudo apt-get install git
- git clone `https://github.com/zoelabbb/conio.h.git` or [Click to Clone Repos](https://github.com/zoelabbb/conio.h.git)
- cd conio.h
> ![Copy & Paste](https://github.com/zoelabbb/conio.h/blob/master/src/img/Copy%20%26%20Paste.png)
### Step 2 :
- `sudo make install`
- Restart or Close your IDE and open it again
- And done :D
Now you can using library `#include <conio.h>`.
# Support Me
Wanna Support me ? You can buy me some coffee via :
- [PayPal :coffee:](https://www.paypal.com/paypalme/haialipp).
- [Buy Coffee :coffee:](https://www.buymeacoffee.com/ikoo).
theme: jekyll-theme-minimal
\ No newline at end of file
theme: jekyll-theme-leap-day
\ No newline at end of file
# Hi! Welcome
This is a library conio.h for linux. Copy file and paste file conio.h on `/usr/include/` but don't forget before you want copy paste on `/usr/include/` you must open folder as administrator first !!
![conio h](https://user-images.githubusercontent.com/49254668/55953523-85b33c80-5c86-11e9-8568-71a638a9782e.png)
## List Function
cprintf
cscanf
gotoxy
clrscr
textcolor
textbackground
wherex
wherey
getch
getche
ungetch
kbhit
putch
putchar
cputs
clreol
insline (not implemented)
delline (not implemented)
cgets (not implemented)
getpass (not implemented)
gettext (not implemented)
_cprintf
_cscanf
_cputs
_getche
_kbhit
_putch
_ungetch
# Installation for Linux
### Step 1 :
* Open terminal sudo apt-get update
* sudo apt-get upgrade
* sudo apt-get install git
* git clone `https://github.com/zoelabbb/conio.h.git`or [Clone here](https://github.com/zoelabbb/conio.h.git)
* cd conio.h
> ![Copy Paste](https://user-images.githubusercontent.com/49254668/55939379-c5b6f700-5c67-11e9-96d3-01f0e39bce22.png)
### Step 2 :
* After you finish download file conio.h
* Copy file conio.h -> !! copy file not folder !!
* Go to `/usr/include/`
* Right click on folder `/usr/include/`
* Choose Open as Administrator
* Paste file `conio.h`
* Close your IDE and open again
* Done :D
# Wanna Support me ?
* You can buy me some coffee via [PayPal](https://www.paypal.com/paypalme/haialipp).
* For more details you can see here [Conio.h Repo](https://github.com/zoelabbb/conio.h).
conio.h-master/src/img/Copy & Paste.png

121 ko

conio.h-master/src/img/fatalerror.png

30,4 ko

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <conio.h>
#include <wiringPi.h>
const int PIN_SWITCH_RIGHT = 28;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter