| 939 | } |
| 940 | |
| 941 | void RFM69::readAllRegsCompact() { |
| 942 | // Print the header row and first register entry |
| 943 | Serial.println(); Serial.print(" "); |
| 944 | for (uint8_t reg = 0x00; reg < 0x10; reg++) { |
| 945 | Serial.print(reg, HEX); |
| 946 | Serial.print(" "); |
| 947 | } |
| 948 | Serial.println(); |
| 949 | Serial.print("00: -- "); |
| 950 | |
| 951 | // Loop over the registers from 0x01 to 0x7F and print their values |
| 952 | for (uint8_t reg = 0x01; reg < 0x80; reg++) { |
| 953 | if (reg % 16 == 0) { // Print the header column entries |
| 954 | Serial.println(); |
| 955 | Serial.print(reg, HEX); |
| 956 | Serial.print(": "); |
| 957 | } |
| 958 | |
| 959 | // Print the actual register values |
| 960 | uint8_t ret = readReg(reg); |
| 961 | if (ret < 0x10) Serial.print("0"); // Handle values less than 10 |
| 962 | Serial.print(ret, HEX); |
| 963 | Serial.print(" "); |
| 964 | } |
| 965 | } |
| 966 | |
| 967 | uint8_t RFM69::readTemperature(uint8_t calFactor) { // returns centigrade |
| 968 | setMode(RF69_MODE_STANDBY); |
nothing calls this directly
no outgoing calls
no test coverage detected