Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/parameters.c b/src/parameters.c
index 87cb425..8c8a27c 100644
--- a/src/parameters.c
+++ b/src/parameters.c
@@ -265,8 +265,8 @@ void FLASH_PrintSettings(void)
usb_printf("; Heater 1 PWM Enable: \r\nM531 T0 E%d\r\n",pa.heater_pwm_en[0]);
usb_printf("; Heater 2 PWM Enable: \r\nM531 T1 E%d\r\n",pa.heater_pwm_en[1]);
- usb_printf("; Heater 1 Max pwm (range 0-255): \r\nM301 W%d\r\n",pa.heater_max_pwm[0]);
- usb_printf("; Heater 2 Max pwm (range 0-255): \r\nM301 W%d\r\n",pa.heater_max_pwm[1]);
@zarya
zarya / nrfscanner.ino
Last active August 29, 2015 14:01
NRF Scanner
#include <SPI.h>
// Poor Man's Wireless 2.4GHz Scanner
//
// uses an nRF24L01p connected to an Arduino
//
// Cables are:
// MOSI -> 11
// MISO -> 12
// SCK -> 13
### Keybase proof
I hereby claim:
* I am zarya on github.
* I am zarya (https://keybase.io/zarya) on keybase.
* I have a public key whose fingerprint is D2D4 0C93 1C9D A008 22C7 4FB4 6A11 CAFC E201 17FB
To claim this, I am signing this object:
#include <cstdlib>
#include <iostream>
#include <ctime>
extern "C" {
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/time.h>
void ICACHE_FLASH_ATTR
at_exeCmdGPIO(uint8_t id, char *pPara)
{
uint8_t on;
// uart0_sendStr("GPIO\r\n");
pPara++;
on = atoi(pPara);
if(on == 0)
{
gpio_output_set(0, BIT2, BIT2, 0);
void ICACHE_FLASH_ATTR
at_tcpclient_recv(void *arg, char *pdata, unsigned short len)
{
struct espconn *pespconn = (struct espconn *)arg;
at_linkConType *linkTemp = (at_linkConType *)pespconn->reverse;
char temp[32];
if(at_ipMux)
{
os_sprintf(temp, "\r\n+IPD,%d,%d:",
@zarya
zarya / gist:f6c94d37d861a9079710
Created October 2, 2014 08:37
ESP8266 toggle GPIO pin example
diff --git a/user/at_ipCmd.c b/user/at_ipCmd.c
index 7c3be3c..4ae7fd3 100644
--- a/user/at_ipCmd.c
+++ b/user/at_ipCmd.c
@@ -24,9 +24,11 @@ uint16_t at_tranLen; //now is 256
os_timer_t at_delayChack;
BOOL IPMODE;
-static BOOL at_ipMux = FALSE;
+static BOOL at_ipMux = TRUE;
# tnx to mamalala
# Changelog
# Changed the variables to include the header file directory
# Added global var for the XTENSA tool root
#
# Output directors to store intermediate compiled files
# relative to the project directory
BUILD_BASE = build
FW_BASE = firmware
static os_timer_t some_timer;
void some_timerfunc(void *arg)
{
uart0_sendStr("Key press\r\n");
os_timer_disarm(&some_timer);
//enable interrupt
gpio_pin_intr_state_set(GPIO_ID_PIN(0), GPIO_PIN_INTR_NEGEDGE);
}
#include "ets_sys.h"
#include "driver/uart.h"
#include "osapi.h"
#include "at.h"
#include "key.h"
#include "gpio.h"
static os_timer_t some_timer;
void some_timerfunc(void *arg)