Arduino and 128x64 OLED Display FREE CODE!!!

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ย. 2015
  • This short demo shows how to use a 0.96 inch OLED from Balance world Inc. This Yellow and Blue unit is on the I2C Serial buss and works with Arduino UNO, or Mega boards. Shown are voltage measurements and a performance test using a small bar graph.
    Code on GitHub
    Follow the link below and click the green Code button, and select the download zip option
    github.com/KrisKasprzak/Bargr...
    Graphics Libraries
    github.com/adafruit/Adafruit-...
    github.com/adafruit/Adafruit_...
    Display
    www.amazon.com/Balance-world-Y...
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 112

  • @gwtomsic
    @gwtomsic 3 ปีที่แล้ว +1

    Excellent! Your code is elegant, the clarity is unusual & it works perfectly. Plus. your teaching skills are outstanding. 5-STAR!

    • @KrisKasprzak
      @KrisKasprzak  3 ปีที่แล้ว

      Wow, thanks! Glad I could help

    • @rickchowsr2532
      @rickchowsr2532 3 ปีที่แล้ว

      I can’t get the code to compile

    • @danielcristina6748
      @danielcristina6748 2 ปีที่แล้ว

      Pouvez vous me faire parvenir le code" Your code is elegant, the clarity is unusual & it works perfectly" Merci

  • @onurkayhan662
    @onurkayhan662 2 ปีที่แล้ว

    Emek verdiğiniz kodlarınızı bizimle paylaştığınız için teşekkür ederiz.

  • @KennethScharf
    @KennethScharf 7 ปีที่แล้ว +1

    The address specified is the left shifted value, note that the LSB of the address is the R/W bit which is or'ed in by the driver. Adafruit's driver does the left shifting itself so you have to right shift the value on the board before you pass it to the driver.

    • @KrisKasprzak
      @KrisKasprzak  7 ปีที่แล้ว

      Thanks for the post, i'm sure this will help my readers understand this.

  • @khaledmaliaklanalbanna3586
    @khaledmaliaklanalbanna3586 2 ปีที่แล้ว +1

    It's a great and helpful project. Thank you for your effort.

  • @garethdavies8673
    @garethdavies8673 3 ปีที่แล้ว +1

    Thank you for providing a very interesting and informative video. I intend to put this new knowledge to use

  • @noelwalterso2
    @noelwalterso2 7 ปีที่แล้ว +3

    Thanks, very useful, this is exactly what I needed to know.

    • @KrisKasprzak
      @KrisKasprzak  7 ปีที่แล้ว +2

      Glad I could help.

    • @Tusharix
      @Tusharix 7 ปีที่แล้ว +1

      Likewise, very good stuff. Got me started right away where other videos did not.

    • @ThuanDuong-pv3xu
      @ThuanDuong-pv3xu 6 ปีที่แล้ว

      to: Noel Walter: I dont understand the declarations in Kris' sketch, Do you ? what are they ? thank
      #define OLED_RESET 4
      Adafruit_SSD1306 Display(OLED_RESET);
      int r = 0;
      int i = 0;

  • @johncaviness7468
    @johncaviness7468 6 ปีที่แล้ว +1

    Beautiful!

  • @nixo0077
    @nixo0077 2 ปีที่แล้ว

    Dziękuję za ciekawy program, właśnie uczę się OLED-ów. Pozdrowienia z PL

  • @bhavanakadhane7893
    @bhavanakadhane7893 6 ปีที่แล้ว +1

    Nice and useful project

  • @arduinomaquinas
    @arduinomaquinas 4 ปีที่แล้ว +2

    hello kris, I love your very useful project, intending to use it in dialing small radios. greetings to you my dear,
    Like 630 ...
    André / Brazil.

    • @KrisKasprzak
      @KrisKasprzak  4 ปีที่แล้ว +1

      Glad you find them useful. I'm a big fan of these modules. www.ebyte.com/en/product-class.aspx?cid=1&pid=1 They come in different frequencies, ranges, power output, etc. I use then on several projects and I have a lib on GitHub to program them. Soon I'll have a TH-cam vid on their usage.

    • @KrisKasprzak
      @KrisKasprzak  4 ปีที่แล้ว +1

      PS obrigado

    • @arduinomaquinas
      @arduinomaquinas 4 ปีที่แล้ว +1

      Congratulations for your work friend, now I will be your follower on the web !!!

    • @arduinomaquinas
      @arduinomaquinas 4 ปีที่แล้ว +1

      parabéns pelo seu trabalho amigo, agora serei seu seguidor na web !!!

  • @davidrodribarri2211
    @davidrodribarri2211 6 ปีที่แล้ว +1

    Hi Kris grat job and tutorial,
    I really learn how to use the diplay with your video but I don't get the latest part with "String Format()". What is it needed for? What does it does?
    Regards

    • @KrisKasprzak
      @KrisKasprzak  6 ปีที่แล้ว

      Format() is my own custom function for formatting a number and padding with spaces so the result is right justified--I've written some data loggers where numbers need to be displayed on an LCD, and right justified looks better than left. There is no sprintf support for floats in Arduino IDE so I hacked my own function--i hate using string data types, but i've not come up with a better alternative.

    • @ThuanDuong-pv3xu
      @ThuanDuong-pv3xu 6 ปีที่แล้ว

      +David: so his code was run, wasn't it? and that is high ranking code to common Arduiners with opening source code mind !!

  • @sharonid4287
    @sharonid4287 2 ปีที่แล้ว

    Thank dude

  • @user-yk7wh9fm7k
    @user-yk7wh9fm7k 6 ปีที่แล้ว

    thanks,so cool!

  • @planker
    @planker 2 ปีที่แล้ว

    Well done.

  • @jeffhulett4194
    @jeffhulett4194 8 ปีที่แล้ว +1

    You need to zoom in on the screen so we can see what you are doing, otherwise good video.

  • @campbellmorrison8540
    @campbellmorrison8540 6 ปีที่แล้ว

    Thank you for your really useful over view but something I cant sort is why is the top 1/3 of the display yellow?

    • @KrisKasprzak
      @KrisKasprzak  6 ปีที่แล้ว

      Campbell Morrison some displays are fixed in color so the top 16 rows are so are always yellow I've seen these were there all blue of even seen some that are in color

    • @campbellmorrison8540
      @campbellmorrison8540 6 ปีที่แล้ว

      Thank you Kris, I had no idea they were multi colour, something to look out for when I buy the next lot. Really appreciate your feedback

  • @Darieee
    @Darieee 6 ปีที่แล้ว

    Thanks !

  • @nosafetyswitch9378
    @nosafetyswitch9378 4 ปีที่แล้ว

    Small comment on the library files. I believe you dont need the SPI .h file as the display runs on i2c (Wire) and you do not connect the SPI cables anyway so it can be removed.

    • @KrisKasprzak
      @KrisKasprzak  4 ปีที่แล้ว +1

      Yes correct and good comment. Probably an artifact of the template that I use for nany of my projects

  • @null0638
    @null0638 5 ปีที่แล้ว

    Is there a code that demos a rotating cube? i'd like a 3d graphing/ 3d shape demo on the small oled using an arduino uno

    • @khandapwner6805
      @khandapwner6805 5 ปีที่แล้ว

      you could use one of the graphic demonstration in File>Examples>Adafruit SSD1306>...128x64_i2c

  • @FlexPhill
    @FlexPhill 6 ปีที่แล้ว

    Hey, Thanks for that Video. I now see the random numbers flashing fast. What do i have to change to measure a battery? Tried the "#define ADJ_PIN A0" but I am not sure if i did it correct.

    • @FlexPhill
      @FlexPhill 6 ปีที่แล้ว

      Ok it measures my battery, but instead of 1,2V it shows 12.XX Volts. How can i change the "," position? Thanks a lot!

  • @marinehm
    @marinehm 6 ปีที่แล้ว

    Kris; Great tutorial BTW. Can someone give me a snippet on how to rotate the screen? Basically, I want to flip the screen upside-down. Thanks!

    • @KrisKasprzak
      @KrisKasprzak  6 ปีที่แล้ว +1

      sure,
      display.setRotation(2);
      // 0 is default
      // 1 is 90 deg ccw (maybe cw)
      // 2 is 180 (upside down)
      // 3 is 270 degree ccw (maybe cw)
      if you would like to see how I found this function, check out this vid on how to build a help file of your Arduino libraries
      th-cam.com/video/tcBmE0BsHss/w-d-xo.html

  • @khageshroy7766
    @khageshroy7766 6 ปีที่แล้ว +1

    sir, i am having a problem with the adafruit library. well my oled is working fine but the problem is that the whole adafruit logo is not fitting in my oled. i am using the adafruit1306 SPI example. my oled is 128x64 SPI oled. please help me

    • @KrisKasprzak
      @KrisKasprzak  6 ปีที่แล้ว

      I'm guessing your display is giving a false size to the library--where the library thinks you have more pixels than reality. You could try changing the SSD1306_LCDHEIGHT values in the .h file, Adafruit_SSD1306.h (in your ..\Arduino\Libraries folder and find some # if defined statements. Do you have a link to this display?

    • @tejeshwvardhan1165
      @tejeshwvardhan1165 6 ปีที่แล้ว

      try sh1106 library

  • @dannyk5084
    @dannyk5084 ปีที่แล้ว

    Do you know if there is a way to shut off the display and turn it on using the code?

  • @ismailkhan887
    @ismailkhan887 3 ปีที่แล้ว

    What should I do when I want to use BME280 sensor with OLED at the same time?
    Should I connect SDA and SCL pins from both sensor and OLED toghter and then plug it in Arduino sda and scl pins?

    • @KrisKasprzak
      @KrisKasprzak  3 ปีที่แล้ว +1

      I've never used that sensor, but I believe it has a programmable address (assuming you are using the Adafruit libs). So yes connect all SDA pins to A4, and all SCL pins to A5.

    • @ismailkhan887
      @ismailkhan887 3 ปีที่แล้ว

      @@KrisKasprzak Thank you Sir for a quick response.

  • @julesmarcu5635
    @julesmarcu5635 2 ปีที่แล้ว

    Hi Kris
    I know this is going to be a long text/inquiry, so I apologize in advance.
    I THANK YOU IN ADVANCE
    My name is Jules, I’m an Arduino newbie. Before I spend a bunch of money with the Arduino I’d like to run this project past you, to see if this is even possible to do with an Arduino. Hardware I currently have
    1- 12 volt 2 amp wall wart power supply
    2- Arduino UNO R3 (ie Elegoo super starter kit)
    3- five ws2812b led light strips with 30 leds on each strip
    THE PROJECT
    1- What I would like to do is have 5 different sketches (1 for each strip)
    2- Then be able to run each strip one at a time, switchable with the IR remote supplied in the kit.
    So what and why I’m asking is this, I don’t know anything thing about how to program the Arduino, and I’d rather not go through the learning curve, and the expense if it’s something that won’t work anyway.

    • @KrisKasprzak
      @KrisKasprzak  2 ปีที่แล้ว

      a few points
      1. one LED strip requires 1.5 amps with all LED's displaying white meaning you will need a power supply of 7.5 amps (and that's the minimum). If you wan to ONLY turn one strip on at a time your 2 amp unit should work. If you turn 2 or more, the power supply will probably burn out
      2. you will probably only need 1 sketch but 5 functions (one function per strip), but depending on what you are trying to do, you may able to have some if statements
      3. I've never messed with the IR remote and sensor but I'm guessing you can recieve data from the remote and code a response
      4. I'm not sure what it is that you are trying to do, but i'm sure you control each led and get different actions with the IR remote
      5. you will have no choice but to learn how to program and Arduino. I'm sure there are examples out there to get you started. Especially in the libraries for the light strip and ID device

  • @tejeshwvardhan1165
    @tejeshwvardhan1165 6 ปีที่แล้ว

    What does char sbuf[20]; do ??

  • @bjumse302
    @bjumse302 6 ปีที่แล้ว

    I used this to make it work on mine - but how do I extend it to work with an DHT22 to show temperatures after it shows a image at power on? (already got the image to work, but how to make it show temperatures after that) Can't make it work with the guides on "google" :/

    • @KrisKasprzak
      @KrisKasprzak  6 ปีที่แล้ว

      can you get your DHT22 to work without using the display? Meaning write the temps and humidity to a serial monitor? If not there are example sketches that come with the DHT22 library.

  • @RodrigoBastiasrcbf
    @RodrigoBastiasrcbf 6 ปีที่แล้ว

    Gracias....

  • @jparky1972
    @jparky1972 8 ปีที่แล้ว

    I don't suppose you could example how to use two of these displays together with each showing something different on screen could you?

    • @KrisKasprzak
      @KrisKasprzak  8 ปีที่แล้ว +2

      +Jason Park Thats possible but the displays must have a different address. The one used there is a fixed address--possibly mixing vendors would result in different addresses. Code would be something like this
      setup()
      FirstDisplay.begin(SSD1306_SWITCHCAPVCC, 1111); // what ever it's address is
      SecondDisplay.begin(SSD1306_SWITCHCAPVCC, 2222); // what ever it's address is
      loop()
      FirstDisplay.setCursor(0, 0);
      FirstDisplay.println("First Display");
      FirstDisplay.display();
      SecondDisplay.setCursor(20, 0);
      SecondDisplay.println("Second Display");
      SecondDisplay.display();

    • @jparky1972
      @jparky1972 8 ปีที่แล้ว

      +Kris Kasprzak OK. Thanks.
      I'll look into it.
      I have a couple of the white displays that have link on the rear to change the address.
      I'll see if I can make one different and try that.
      Thanks.

  • @psi3000
    @psi3000 8 ปีที่แล้ว +3

    where is the code for the volts meter at the very end?

    • @rallymax2
      @rallymax2 2 ปีที่แล้ว

      It’s the two rectangle draws that he talked about with the R-value where he paints white for the first part and black for the last part. He then put some black lines over the top using if(x %10 == 0) as a discriminator of where to put it.

  • @carlosesparza2029
    @carlosesparza2029 4 ปีที่แล้ว

    Hello Kris,
    Do you have an idea please, why is my OLED display processing the graphs so slow?

    • @KrisKasprzak
      @KrisKasprzak  4 ปีที่แล้ว +1

      Not with the detail you've provided. What MCU? what's connected to what, what display, etc.

    • @carlosesparza2029
      @carlosesparza2029 4 ปีที่แล้ว

      @@KrisKasprzak I'm using Arduino UNO with OLED I2C 128 x 64, USB as power supply...

    • @KrisKasprzak
      @KrisKasprzak  4 ปีที่แล้ว

      @@carlosesparza2029 if you are using my code directly, performance should be fast. if modified code, can you share it?

    • @luci295
      @luci295 4 ปีที่แล้ว

      I have the same problem! I try this whith Pro Micro and Nano, same thing . I try other code and its the same! Maybe is the library that is corupt ?

    • @luci295
      @luci295 4 ปีที่แล้ว

      I see that your sketch is 47% of your storage ! Why is my at 68% of the storage ? BTW Thank you for the tutorial. PS. I change the library and its the same!

  • @akanksh422
    @akanksh422 6 ปีที่แล้ว

    I've bought an Oled module but it doesnt have a CS PIN
    Its a 6 pin oled with vcc gnd scl sdl res dc
    I cant find a code for it

    • @KrisKasprzak
      @KrisKasprzak  6 ปีที่แล้ว

      You sure it's an SPI? maybe it supports both? can the MCU's SDA is your sdl and the MCU SCL is your displays scl? First step is finding your pin mapping. the library that i use supports both I2C and SPI in the lib initialize with: Adafruit_SSD1306(int8_t DC, int8_t RST, int8_t CS);

    • @ovi_4
      @ovi_4 4 ปีที่แล้ว

      If it does have a reset pin as well you need to include the RES (reset pin) in the code . otherwise it will not work. I had a similar screen at some point in the past and had to do it.

  • @fletch1018
    @fletch1018 5 ปีที่แล้ว

    Where do I find the SPI.h and Wire.h to include them?

    • @KrisKasprzak
      @KrisKasprzak  5 ปีที่แล้ว

      Those 2 lib should have been delivered with you arduino IDE

  • @DavidRobertLewis
    @DavidRobertLewis 6 ปีที่แล้ว

    All I get is "Bar Graph Random Number", no data displayed with r = r / 7.98; uncommented, likewise r = rand() / 220;

  • @projetos_leotronico
    @projetos_leotronico 6 ปีที่แล้ว

    Error in code:
    Arduino: 1.8.5 (Windows 10), Placa:"Arduino/Genuino Uno"
    CODE\bargraph\bargraph.ino: In function 'void loop()':
    bargraph:81: error: 'ADJ_PIN' was not declared in this scope
    r = analogRead(ADJ_PIN);
    ^
    exit status 1
    'ADJ_PIN' was not declared in this scope

    • @KrisKasprzak
      @KrisKasprzak  6 ปีที่แล้ว +1

      I had that line commented out. If you uncomment those few lines then add a line #define ADJ_PIN A0 and connect the sweeper wire from a pot to A0 (the other leads go to +5 and GND). This will allow you to vary the voltage at pin A0 so you can make the bar graph show changes to the input voltage.

    • @projetos_leotronico
      @projetos_leotronico 6 ปีที่แล้ว

      tks!

  • @pauloe8pck830
    @pauloe8pck830 7 ปีที่แล้ว

    Hi Kris, I have a Problem with writing a graph for temperature on an Oled Screen. Can I send you the code to look at? The temperature Display is wiped out with the graph although it is in seperate lines. Could you have a look?Regards, Paul

    • @KrisKasprzak
      @KrisKasprzak  7 ปีที่แล้ว +1

      OE8PCK sure, I wonder if you could post the code as a comment.

    • @pauloe8pck830
      @pauloe8pck830 7 ปีที่แล้ว

      Thanks for your answer Kris. I think I should say what I am trying to achieve. I fly model gliders and Need a measurement of the Temperature or I should say temperature Change. My sketch recieves a valuse from the Transmitter using a 433 mhz rx. This value is measured aover a few seconds and is used as a ambiant temperature. The Value is then sent to the Oled as a decimal value. Above this acrual valuse I have tried to make a visual value as a graph . The reason is that I Need to see a temperature Change from around 1.5 to 2 degrees C as a graph. The graph I have as the Moment has a Problem, the decimal value is wiped out and the graph disappears after it runs over the Screen..I would like the following.A line that runs over the Screen (the Speed should be changeable in the code) left to right, and when the temperature changes then the line should move up. The actual value should remain . I will now send the sketch for the Receiver, with the OLed, if you Need the TX code please tell me. If you do Change anything please write a description so I can adjust the Speed etc. Many THANKS!!!!!!Paul// receiver temp.
      //
      #include #include "U8glib.h"//U8GLIB_SH1106_128X64 u8g(13, 11, 10, 9); // SW SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9
      U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_DEV_0|U8G_I2C_OPT_NO_ACK|U8G_I2C_OPT_FAST); // Fast I2C / TWI
      int count;
      float temperatureNow;
      float tempGraph[64];
      float baseTemp;
      float graphVal2;
      int graphVal1;
      int graphpos = 0;
      void draw(void) {
      u8g.setColorIndex(1);
      // graphic commands to redraw the complete screen should be placed here
      u8g.setFont(u8g_font_unifont);
      u8g.setPrintPos(0,55);
      u8g.print(temperatureNow);
      //u8g.setFont(u8g_font_osb21);
      //u8g.drawStr( 0, 22, "Hello World!");
      u8g.drawBox(0,0,128,40);
      u8g.setColorIndex(0);
      for(int i=0;i

    • @KrisKasprzak
      @KrisKasprzak  7 ปีที่แล้ว

      First of all, what's not working? can't receive data, plots are wrong, won't compile? Hard to say what the issue could be given the issues in the code. Undefined constants (VW_MAX_MESSAGE_LEN), very odd baud rate (4000), and so on. .

    • @pauloe8pck830
      @pauloe8pck830 7 ปีที่แล้ว

      When I receive data from the 433mhz rx the bar disappears and moves across the screnn and also wipes out the temerature Digits and I end up with a blank Screen. The baud rate id not for the arduino but for the rx, this is Setup eith the same Speed as the TX. I would like just a line which goes across the Screen at ambient temerature and then when the temperature increases the line should bend upwards. The reception of the data is also very erratic but this is not my main Problem that I have. Getting the graph to work so that the temerature Digits are not wiped out and getting the graph to remain visible that are my main concerns.I have been working on this code for 4 and a half months now and it still will not work. I came to you because of your code on the poti and the resulting graph. I guess it is my old Age nearly 70, .. perhaps I should not have started this and remained wih my Radio stuff which I understand a lot better. :-) I hope I have explained clearly what I am trying to achieve. If you would like a direct Explanation, I have SKYPE and the Skype Name id OE8PCK. Thanks for your Patience.

    • @pauloe8pck830
      @pauloe8pck830 7 ปีที่แล้ว

      I think I have got things a bit muddled. The way the following code is supposed to work is that it Displays a bar that Shows thwe ambient temperature and when the temperature changes the bar changes. Basically it does not work. Could you Show me some code which would Display the Temerature received as a line running from left to right across the Screen and when the temerature increases moves up so as to Show a curve. This line should not interfere with the digital temerature readout I have at pos. 0,55 on the Screen. The idea with a drawing a box does not work because as it moves across the Screen the Digits of the temperature Display are wiped out. Regarding the very odd baud rate (4000), This is used by the Radio Tx and RX, it has nothing to does with baud rates. Regarding the Undefined constants (VW_MAX_MESSAGE_LEN), to be honest, I do not understand this part of the code, it has to do with changing the drawn box. Someone sent this to me as a Suggestion. I will now include the sketch again and perhaps you can Change it to Show the Temerature Change as a line. I really only want to see a small temerature Change using this line. e.g. when the temperature changes by 2 degrees C.// receiver temp.
      // By Paul OE8PCK
      #include
      #include "U8glib.h"U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_DEV_0|U8G_I2C_OPT_NO_ACK|U8G_I2C_OPT_FAST); // Fast I2C / TWI
      int count;
      float temperatureNow;
      float tempGraph[64];
      float baseTemp;
      float graphVal2;
      int graphVal1;
      int graphpos = 0;void draw(void) {
      u8g.setColorIndex(1);
      // graphic commands to redraw the complete screen should be placed here
      u8g.setFont(u8g_font_unifont);
      u8g.setPrintPos(0,55);
      u8g.print(temperatureNow);
      u8g.print(" Degrees C");
      u8g.drawBox(0,0,128,40);
      u8g.setColorIndex(0);
      for(int i=0;i

  • @psi3000
    @psi3000 8 ปีที่แล้ว +1

    and yes, i cant see exactly where the wires for everything go.

    • @KrisKasprzak
      @KrisKasprzak  8 ปีที่แล้ว

      +Richard Pulliam III There is a pot between GND and +5Volts, then the sweeper is connected to pin A0
      in my comment block in the code I call out what gets connected to what.
      #define ADJ_PIN A0 // establishes the voltage reading pin
      in setup()
      pinMode(ADJ_PIN, INPUT); // establishes the ability to read the voltage output from the pot
      in loop()
      // commented out is the actual reading of the voltage on pin A0
      // i believe i divide by 7.98 to get the voltage to scale to the screen width (1023 / 128)
      // because the voltage read comes after the rand() call, it will overwrite the value for r
      // then the voltage will be used in the fillRect call
      //r = analogRead(ADJ_PIN);
      //r = r / 7.98;

    • @psi3000
      @psi3000 8 ปีที่แล้ว +1

      Thanks man!

    • @KrisKasprzak
      @KrisKasprzak  8 ปีที่แล้ว +1

      +Richard Pulliam III You're very welcome. I have some other Arduino videos--a neat one using the same parts to build an oscilloscope--range up to about 4kHz

    • @KrisKasprzak
      @KrisKasprzak  7 ปีที่แล้ว

      Glad I could help.

  • @ovi_4
    @ovi_4 4 ปีที่แล้ว

    Really good, instructional video. However, when it comes to purchasing things I would not make Amazon's ,,hungry pocket,, more fat than already is. I'd would buy them from a say : ,,affordable places,,: ($13 could buy you not 1 but 6 of those screens !!!!!) and that is what I call good value for your cash !
    Having said that, a big thanks you for the video. Very well put together. And excuse my ,,rant,, but I just couldn't help it. I had to say it. ;)

    • @KrisKasprzak
      @KrisKasprzak  4 ปีที่แล้ว

      feel free to cite some sources please.

  • @electronwings
    @electronwings 4 ปีที่แล้ว

    It does not open in drive please check it

  • @rwh777
    @rwh777 3 ปีที่แล้ว

    The includes in the source I downloaded don't look exactly like the ones I saw at 2:36 in the vid.
    */
    #include
    #include
    #include
    #define OLED_RESET 4
    Adafruit_SSD1306 Display(OLED_RESET);
    int r = 0;
    int i = 0;
    void setup() {

  • @LuisVazquez-kj1ym
    @LuisVazquez-kj1ym 3 ปีที่แล้ว

    No veo, porque no hace un zoom en el código no lo puedo ver

    • @KrisKasprzak
      @KrisKasprzak  3 ปีที่แล้ว

      download the code and have a look

  • @unknownhuman1000
    @unknownhuman1000 2 ปีที่แล้ว

    Sda and scl

  • @rickchowsr2532
    @rickchowsr2532 3 ปีที่แล้ว

    The code will not compile Help please

    • @KrisKasprzak
      @KrisKasprzak  3 ปีที่แล้ว +1

      with the information provided, what do you honestly think I'm going to be able to do?

    • @rickchowsr2532
      @rickchowsr2532 3 ปีที่แล้ว

      @@KrisKasprzak honestly after 5 years I wasn’t expecting a reply. Thank you for that.
      I keep getting an error to compile and error status 1. Since I originally commented It seems to be happening to any code other then the on I had originally installed on the nano.. so it seems not to be the code, however any pointers on this currant issue would be appreciated. Thank you for your time

    • @KrisKasprzak
      @KrisKasprzak  3 ปีที่แล้ว +1

      @@rickchowsr2532 a NANO? Try changing your compiled option to "Old bootloader." I don't remember exactly where it's at but you'll see it with your other compile options.

    • @rickchowsr2532
      @rickchowsr2532 3 ปีที่แล้ว

      @@KrisKasprzak ok .......I’ll try that and let you know.

    • @rickchowsr2532
      @rickchowsr2532 3 ปีที่แล้ว

      @@KrisKasprzak and yes a Nano

  • @NatsuWolfox
    @NatsuWolfox 5 ปีที่แล้ว

    lol on Aliexpress is for 1.81$ :D

  • @MikevomMars
    @MikevomMars 3 ปีที่แล้ว

    "Free code" - wow. Did you ever pay for an Arduino code??

  • @notyourtipicaltechguy6438
    @notyourtipicaltechguy6438 8 ปีที่แล้ว

    That is an oled screen not an lcd