HomeGPT v.1.0
HomeGPT revolutionizes home automation with advanced features such as facial recognition for secure access, mood-responsive lighting, RFID-enabled garage entry, and clap-activated door closures. This system elevates the living experience by seamlessly blending security, convenience, and ambiance-enhancing technology.
Loading...
Searching...
No Matches
bcm2835_gpio_impl.h
Go to the documentation of this file.
1// Copyright (C) 2021 twyleg
2#pragma once
3
4#include "igpio.h"
5
6#include "bcm2835.h"
7
8#include <iostream>
9
10class BcmGpio : public mfrc522::IGpio {
11
12public:
13 BcmGpio(unsigned int pin)
14 : mPin(pin)
15 {
16 bcm2835_gpio_fsel(pin, BCM2835_GPIO_FSEL_OUTP);
17 bcm2835_gpio_write(pin, 0x00);
18 }
19
20 void setValue(Value value) final {
21 switch (value) {
23 bcm2835_gpio_write(mPin, 0x00);
24 break;
26 bcm2835_gpio_write(mPin, 0x01);
27 break;
28 }
29
30 }
31
32 Value getValue() final {
34 }
35
36private:
37
38 const unsigned int mPin;
39
40};
Definition: bcm2835_gpio_impl.h:10
Value getValue() final
Definition: bcm2835_gpio_impl.h:32
BcmGpio(unsigned int pin)
Definition: bcm2835_gpio_impl.h:13
void setValue(Value value) final
Definition: bcm2835_gpio_impl.h:20
Definition: igpio.h:8
Value
Definition: igpio.h:10