This file contains hidden or 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
| <img src="https://kroki.io/plantuml/svg/eNqdVktv00AQvvdXrIxQpYikEjcqqAqliAOVykNcEIom64m9dB9mH2nDr2c2Xm8Se1shDlHs3Xl-882ML50H65XQtYLuZPbjmRRN61cy4E9WVY3wVXUyGx9DXe-OZ_HZ8lZszMI_9KJj2UV_Oluyt43FBizzpjaOSfolXTf1sLKgeZuc9C9LDQqTqSuLwIIGZkEB40YzbdTKYtbcCRfjmafQp2bJ7rUUBAUw-V-WNznVm4DOW2AoWZBeKEPX3CgV4WSoGYe691AyAxMzhBgQYvSLOu4FgcdBomNbZlEZD-5kCiFvkd-ZUK7KfDWgUMhrivCWOWQq4AZZC1zExCQ8Upuvg-S_VmgctzQaM71a7zt3fnZGTGzDakEgnkmxoreXw39G68p0Auw86hPLgiZsOuOEN1aYCLoUGqHgL9WlhJIaUGLVN3zwpigErCg3EqvFet1LLdlrJ_7g-auLW6DibtBSPdnvgBHkFpgyJCuIIoZ1aA0Bly6qjjIilbpkf40-NczoQuhyE0vTlJOeE_4Rq5RTuu6Evuuva-TGgs9kmQg0Frp2uJ1eg5SPOKb8vN--qZ63bM6eu4oOJ8RWaBucaE9p-CE4QUQY843tmxu4DyB7B5SQbnZRqE3mXmIsaI9EIbvvGE38NonQQ01vTCxkmmjMUIurFdExSU3h78IAA70QRRuh9w6oyclnqWpdcG1ZbYKmh8b9i8ndCCmPNBr0bBxboSM74GZuwwYkhxWc5b7bPjUnJ1E49CPolz2cCxx2C-H8OQgfJ0uGuqYhW1W0xpriOLFqqNBO0x7oRSZAnHP0GPWFbkruTfI_te1acz8OGb2gVvZQVvDgg8uU6ce7i2uCnmLDx6AOFuP5MFNFHAFRRjMnmiBQ1-bojibsWlhlCk4ps8HjJ0EmDtbJEKx7ag8Vc5ulm356LnfLxgXVZ_3EJI1KCrWDX9gDNzI9bkdeD7FfpYaqhUW-G-oJ-Pl-AyQR |
This file contains hidden or 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
| // Ejemplo sencillo para usar la librería MCAD para hacer una caja de borde redondeados. | |
| use <MCAD/boxes.scad> | |
| $fa=1; | |
| $fs=0.4; | |
| roundedBox(size=[10,20,30],radius=3,sidesonly=false); |
This file contains hidden or 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
| % Acomodado de menor a mayor | |
| \tiny | |
| \scriptsize | |
| \footnotesize | |
| \small | |
| \normalsize | |
| \large | |
| \Large | |
| \LARGE | |
| \huge |
This file contains hidden or 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
| // Modificar el código para que la altura y grosor del tubo dependan de variables. | |
| $fa = 1; | |
| $fs = 0.4; | |
| difference(){ | |
| cylinder(10,5,5,center=true); | |
| cylinder(11,4,4,center=true); | |
| } |
This file contains hidden or 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
| @startmindmap | |
| *[#lightblue] ""git"" | |
| **[#lightblue] ""add"" | |
| *** ""archivo.txt"" | |
| ***[#lightblue] ""."" | |
| ****_ Agregar todos los archivos | |
| **[#lightblue] ""branch"" | |
| *** branch_name | |
| ****_ Crea una rama con nombre ""branch_name"" | |
| ***[#lightblue] ""-d"" |
This file contains hidden or 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
| //!OpenSCAD | |
| module grafica(dato1, dato2) { | |
| union(){ | |
| for (i = [0 : abs(5) : (dato1 * 360) / (dato1 + dato2)]) { | |
| rotate([0, 0, i]){ | |
| translate([25, 0, 0]){ | |
| rotate([90, 0, 0]){ | |
| color([0,0.6,0]) { | |
| cylinder(r1=10, r2=10, h=1, center=false); |
This file contains hidden or 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
| #include <Wire.h> | |
| volatile byte x = 0; | |
| volatile bool Recibido = false; // Flag to indicate new data | |
| void setup() { | |
| pinMode(9,OUTPUT); // Declarar la salida del actuador | |
| Wire.begin(8); // Unirse al bus I2C con dirección #8 (esclavo) | |
| Wire.onReceive(recepcion); // Interrupción de recepción | |
| Serial.begin(9600); // Iniciar el puerto serial (Debug) | |
| delay(30);} | |
| void loop() { |
This file contains hidden or 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
| #include <Wire.h> | |
| volatile byte x = 0; // Datos a recibir en el programa | |
| void setup() { | |
| Wire.begin(10); // Unirse al bus I2C con dirección #10 | |
| Wire.onRequest(transmision); // Interrupción para mandar datos | |
| delay(30); | |
| x = (byte)(analogRead(A0) >> 2);} // El dato del sensor se inicializa con datos válidos | |
| /*El ADC del arduino tiene una resolución de 10 bits. Pero sólo queremos mandar un bye (8 bits) | |
| El corrimiento en dos lugares analogRead(A0)(A0)>>2 asegura que sólo tengamos 8 bits | |
| El cast a byte (byte) es una medida de seguridad para evitar casos extremos |
This file contains hidden or 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
| #include <Wire.h> | |
| volatile bool TransmitirDatos = false; | |
| volatile bool RecibirDatos = false; | |
| volatile byte x = 0; | |
| void transmitir() { | |
| TransmitirDatos = true; // Bandera para transmitir | |
| } | |
| void recibir() { | |
| RecibirDatos = true; // Bandera para recibir |