Skip to content
Snippets Groups Projects
hdc1080.h 460 B
Newer Older
  • Learn to ignore specific revisions
  • /*
     * Copyright 2020 Daniel Friesel
     *
     * SPDX-License-Identifier: BSD-2-Clause
     */
    
    #ifndef HDC1080_H
    #define HDC1080_H
    
    class HDC1080 {
    	private:
    		HDC1080(const HDC1080 &copy);
    		unsigned char const address = 0x40;
    		unsigned char txbuf[3];
    		unsigned char rxbuf[2];
    
    	public:
    		HDC1080() {}
    
    		float getTemp();
    		float getRH();
    		unsigned int getManufacturerID();
    		void init();
    
    		void heater(bool on);