#ifndef B40_H
#define B40_H
#include "Arduino.h"
#include <stdint.h>

class b40
{
	public:
		b40();
		void zero();
		void one();
		void set(uint8_t pos, bool val);
		void set(uint8_t pos);	// val=1
		void reset(uint8_t pos);
		bool val(uint8_t pos);
// --------------------------------------------------------------------------------
		void copyFrom(b40 x);
		bool isZero();
		uint8_t bits();
		void print();
		void ANDwith(b40 x);
	private:
		uint8_t a40[5];
};

#endif
