# Check For USB Port Connection

**URL:** <https://discourse.processing.org/t/check-for-usb-port-connection/17406>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [January 29, 2020, 3:49am UTC](https://discourse.processing.org/t/check-for-usb-port-connection/17406 "2020-01-29T03:49:34Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [February 2, 2020, 5:12pm UTC](https://discourse.processing.org/t/check-for-usb-port-connection/17406/17 "2020-02-02T17:12:58Z")

</div>

Try a smaller textSize() that is \<= 100.

Code below works to a maximum textSize(100) and displays in both setup() and draw() in Processing 3.5.4.

It does not display in setup() with Processing 4 Alpha 1.

```auto
void setup() 
	{
  size(1000, 360);
  background (255, 0, 0);
  
  println("got here");
  
  textSize(48);
  textAlign (CENTER,CENTER);

  text("Setup", width/2, height/4); //Works!
  
  Opmessage ("Plug in the Arduino GPS Scanner"); //Works now!
  delay (2000);
	}

void draw() 
	{
  background(0, 255, 0);
  text("Draw", width/2, height/2); //Works!
	}

void Opmessage (String Message)
  {
  text (Message, width/2, height/2);
  }

```

You will have to be quick to plug it in since you only have 1 sec!

’ 🙂 ’

---

_[View the full topic](https://discourse.processing.org/t/check-for-usb-port-connection/17406)._
