Skip to content

Instantly share code, notes, and snippets.

View lomassubedi's full-sized avatar

lomas lomassubedi

View GitHub Profile
void setup() {
Serial.begin(115200);
}
void loop() {
while(Serial.available() > 0) {
Serial.write(Serial.read());
}
}
/*
* Project : Meat Curing Chamber Controller
* Author : Lomas Subedi
* Controller : ESP WROOM - 32
*/
/*
* ------------------------
* Pin Configuration
* ------------------------
#include <WiFi.h>
#include <WiFiClient.h>
#include <SPI.h>
#include <Wire.h>
#include <HTTPClient.h>
#include "ArduinoJson.h"
#include "Adafruit_BME280.h"
#define BAUD 115200UL
void setup() {
// put your setup code here, to run once:
Serial.begin(BAUD);
}
void loop() {
@lomassubedi
lomassubedi / versioning
Created July 11, 2022 10:10
software_versioning
#define v_major 4
#define v_minor 2
#define v_patch 3
uint32_t = (v_major << 16) | (v_minor << 8) | v_patch;
@lomassubedi
lomassubedi / header_template.c
Last active July 15, 2025 08:46
C Header and Source Code Template
/*******************************************************************************
* (C) Copyright 2025; Nepal Digital Systems Pvt. Ltd., Kathmandu, Nepal. The
* attached material and the information contained therein is proprietary to
* Nepal Digital Systems Pvt. Ltd. and is issued only under strict confidentiality
* arrangements.It shall not be used, reproduced, copied in whole or in part, adapted,
* modified, or disseminated without a written license of Nepal Digital Systems Pvt.
* Ltd. .It must be returned to Nepal Digital Systems Pvt. Ltd. upon its first request.
*******************************************************************************/
/*******************************************************************************