Changing the World... one drop at a time.
https://github.com/rudrathegreat/Water-Quality-Checking-System-Web-Application https://github.com/rudrathegreat/Water-Quality-Checking-System
''' | |
This code is only meant to be run on the | |
BBC Microbit because this program uses | |
a slight deviation of the Original Python. | |
The language which is being use here is | |
MicroPython, which is designed for small | |
microprocessors and microcomputers. | |
''' | |
from microbit import * |
''' This program only works on the | |
BBC Microbit. If you would like to view | |
Dice.py, then just use the link below - | |
https://gist.github.com/rudrathegreat/ed7db24af713ae8d42444bc0816d19c6 | |
''' | |
from microbit import * | |
import random |
echo 'Do you want to shutdown the Raspberry Pi?' | |
read $variable | |
if [[$variable = 'Y']]; then | |
echo 'As you wish' | |
echo 'Goodbye!' | |
sudo shutdown -h now | |
elif [[$variable = 'N']]; then | |
echo 'Ok. As you wish' |
''' | |
This program will not display each individual number on the | |
microbit display. Instead, there is a different program to | |
show those numbers. This program needs a BBC Microbit to run. | |
The number of numbers my BBC MicroBit was able of calculate | |
in the Fibonacci Sequence was 9000 before it came across a | |
memory error, running out of memory to calculate any more. | |
''' |
''' | |
This program is designed to porve that | |
the BBC Microbit is actually calculating the | |
Fibonacci Sequence. The code for computing | |
Fibonacci Sequence up to a specific number | |
of numbers inthe sequence can be found using | |
the following link - | |
https://gist.github.com/rudrathegreat/bfafd7af975f0737458c8d63c0eda84d |
import math | |
import numpy as np | |
class Calculator(object): | |
def __init__(self): | |
pass | |
def add(self, num1, num2): | |
try: |
''' | |
This class is designed to be used for mathematical | |
calculations only. | |
This program has the functionality to remember the | |
previous answer which you needed to calculate. | |
This code was orginally proposed in this issue, | |
link below - | |
https://github.com/AceLewis/my_first_calculator.py/issues/24 |
''' | |
This program is orginally designed for | |
uses when you feel bored and only runs | |
on the BBC Microbit. | |
The code is orginially from the following | |
repository, link below - | |
https://github.com/rudrathegreat/Microbit-Projects |
Changing the World... one drop at a time.
https://github.com/rudrathegreat/Water-Quality-Checking-System-Web-Application https://github.com/rudrathegreat/Water-Quality-Checking-System