This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Requirements: xml2 package | |
# Export the Revelation file as XML and: | |
# cat exported.xml | xml2 | 2pass | |
reset_entry() | |
{ | |
a_fields=() | |
a_values=() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TARGET_EXEC ?= simul | |
TARGET_PLATFORM ?= linux | |
SRC_DIRS ?= . ../src | |
SRCS := $(shell find $(SRC_DIRS) -name '*.s') | |
SRCS += $(shell find $(SRC_DIRS) -name '*.c') | |
SRCS += $(shell find $(SRC_DIRS) -name '*.cpp') | |
OBJS := $(SRCS:%=%.o) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 2x SNx4HC595 using N bits | |
#include <Arduino.h> | |
#define PIN_SER 8 | |
#define PIN_LAT 9 | |
#define PIN_CLK 10 | |
#define TOTAL_BITS 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Marlin 3D Printer Firmware | |
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] | |
* | |
* Based on Sprinter and grbl. | |
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or |
Posibles melloras:
- (!) Estandarización dos drill dos parafusos en placa: 3.0mm --> 3.2mm ([referencia][ARD01]).
- T0 e T1 na silk deberían estar próximos aos pins (separar un pouco os condensadores para a silk?).
- Igualmente na silk, as indicacións dos drivers X, Y, Z, E deberían estar ao lado do conector (non do condensador).
- Publicar o esquema da placa.
- Indicar na silk inferior información como: os micropasos dos motores.
- (pro) Conector hotbed sen pasar polo FET para as camas quentes 220V.
- (!) Revisar a fortaleza das soldaduras dos pots (desoldóuseme o Z).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Marlin 3D Printer Firmware | |
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] | |
* | |
* Based on Sprinter and grbl. | |
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void init_pwm() { | |
// outputs | |
DDRB |= (1 << 2); // PB2 | |
DDRD |= (1 << 5); // PD5 | |
// Waveform Generation Mode to Fast PWM (WGM0[0:2]=7) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- clock_div: SPI clock divider, f(SPI) = 80 MHz / clock_div | |
function spi_test(clock_div) | |
spi.setup(1, spi.MASTER, spi.CPOL_HIGH, spi.CPHA_HIGH, 8, clock_div, spi.FULLDUPLEX) | |
for n=0,256 do | |
r = { spi.send(1, n) } | |
--print(n, r[2]) | |
if n > 0 and ((n-1)*2) % 256 ~= r[2] then print("ERROR!") ; return end |